-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlist_of.rs
66 lines (55 loc) · 2.02 KB
/
list_of.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
use serde::{Deserialize, Serialize};
use super::base_types::{
Compartment, Constraint, FunctionDefinition, InitialAssignment, Objective, Parameter, Reaction,
Rule, Species,
};
use super::unit::UnitDefinition;
#[derive(Deserialize, Serialize, PartialEq, Debug, Default, Clone)]
pub struct ListOfUnitDefinitions {
#[serde(rename = "unitDefinition", default)]
pub unit_definitions: Vec<UnitDefinition>,
}
#[derive(Deserialize, Serialize, PartialEq, Debug, Default, Clone)]
pub struct ListOfCompartments {
#[serde(rename = "compartment", default)]
pub compartments: Vec<Compartment>,
}
#[derive(Deserialize, Serialize, PartialEq, Debug, Default, Clone)]
pub struct ListOfSpecies {
pub species: Vec<Species>,
}
#[derive(Deserialize, Serialize, PartialEq, Debug, Default, Clone)]
pub struct ListOfReactions {
#[serde(rename = "reaction", default)]
pub reactions: Vec<Reaction>,
}
#[derive(Deserialize, Serialize, PartialEq, Debug, Default, Clone)]
pub struct ListOfParameters {
#[serde(rename = "parameter", default)]
pub parameters: Vec<Parameter>,
}
#[derive(Deserialize, Serialize, PartialEq, Eq, Debug, Default, Clone)]
pub struct ListOfInitialAssignments {
#[serde(rename = "initialAssigment", default)]
pub initial_assignments: Vec<InitialAssignment>,
}
#[derive(Deserialize, Serialize, PartialEq, Eq, Debug, Default, Clone)]
pub struct ListOfConstraints {
#[serde(rename = "constraint", default)]
pub constraints: Vec<Constraint>,
}
#[derive(Deserialize, Serialize, PartialEq, Debug, Default, Clone)]
pub struct ListOfObjectives {
#[serde(rename = "objective", default)]
pub objectives: Vec<Objective>,
}
#[derive(Deserialize, Serialize, PartialEq, Eq, Debug, Default, Clone)]
pub struct ListOfRules {
#[serde(rename = "$value", default)]
pub rules: Vec<Rule>,
}
#[derive(Deserialize, Serialize, PartialEq, Eq, Debug, Default, Clone)]
pub struct ListOfFunctionDefinitions {
#[serde(rename = "functionDefinition", default)]
pub function_definitions: Vec<FunctionDefinition>,
}