diff options
Diffstat (limited to 'src')
-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 |