diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-10-29 18:22:39 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-10-29 18:22:39 -0700 |
commit | bb907287a9f923615b9f52dbf3a37d7fea20f58e (patch) | |
tree | 17b534320b63ea8617f0c8c5a5bb102d9e2f8f0e | |
parent | 9ad618b1ef92b399bc96dacea880a323b071af4c (diff) | |
download | modelthing-bb907287a9f923615b9f52dbf3a37d7fea20f58e.tar.gz modelthing-bb907287a9f923615b9f52dbf3a37d7fea20f58e.zip |
make struct members pub also
-rw-r--r-- | src/lib.rs | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -12,10 +12,10 @@ use std::fs::File; #[derive(Debug, PartialEq)] pub struct ModelMetadata { - slug: String, - name_en: String, - description_en: Option<String>, - vars: Vec<ModelVar>, + pub slug: String, + pub name_en: String, + pub description_en: Option<String>, + pub vars: Vec<ModelVar>, } #[derive(Debug, PartialEq)] @@ -27,18 +27,18 @@ pub enum ModelVarType { #[derive(Debug, PartialEq)] pub struct ModelVar { - slug: String, - name_en: String, - vtype: Option<ModelVarType>, - latex: Option<String>, - units_si: Option<String>, + pub slug: String, + pub name_en: String, + pub vtype: Option<ModelVarType>, + pub latex: Option<String>, + pub units_si: Option<String>, } #[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 |