aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-10-29 18:22:39 -0700
committerbnewbold <bnewbold@robocracy.org>2016-10-29 18:22:39 -0700
commitbb907287a9f923615b9f52dbf3a37d7fea20f58e (patch)
tree17b534320b63ea8617f0c8c5a5bb102d9e2f8f0e
parent9ad618b1ef92b399bc96dacea880a323b071af4c (diff)
downloadmodelthing-bb907287a9f923615b9f52dbf3a37d7fea20f58e.tar.gz
modelthing-bb907287a9f923615b9f52dbf3a37d7fea20f58e.zip
make struct members pub also
-rw-r--r--src/lib.rs24
1 files 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<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