From bb907287a9f923615b9f52dbf3a37d7fea20f58e Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 29 Oct 2016 18:22:39 -0700 Subject: make struct members pub also --- src/lib.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a76fc2d..cc1bd36 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,10 +12,10 @@ use std::fs::File; #[derive(Debug, PartialEq)] pub struct ModelMetadata { - slug: String, - name_en: String, - description_en: Option, - vars: Vec, + pub slug: String, + pub name_en: String, + pub description_en: Option, + pub vars: Vec, } #[derive(Debug, PartialEq)] @@ -27,18 +27,18 @@ pub enum ModelVarType { #[derive(Debug, PartialEq)] pub struct ModelVar { - slug: String, - name_en: String, - vtype: Option, - latex: Option, - units_si: Option, + pub slug: String, + pub name_en: String, + pub vtype: Option, + pub latex: Option, + pub units_si: Option, } #[derive(Debug, PartialEq)] pub struct ModelEntry { - ast: modelica_ast::ModelicaModel, - metadata: ModelMetadata, - markdown: String, + pub ast: modelica_ast::ModelicaModel, + pub metadata: ModelMetadata, + pub markdown: String, } // TODO: this -- cgit v1.2.3