fmi_schema/fmi2/
attribute_groups.rs1#[derive(Default, Debug, PartialEq, hard_xml::XmlRead, hard_xml::XmlWrite)]
2#[xml(tag = "Real")]
3pub struct RealAttributes {
4 #[xml(attr = "quantity")]
5 pub quantity: Option<String>,
6
7 #[xml(attr = "unit")]
8 pub unit: Option<String>,
9
10 #[xml(attr = "displayUnit")]
13 pub display_unit: Option<String>,
14
15 #[xml(attr = "relativeQuantity")]
17 pub relative_quantity: Option<bool>,
18
19 #[xml(attr = "min")]
20 pub min: Option<f64>,
21
22 #[xml(attr = "max")]
24 pub max: Option<f64>,
25
26 #[xml(attr = "nominal")]
28 pub nominal: Option<f64>,
29
30 #[xml(attr = "unbounded")]
33 pub unbounded: Option<bool>,
34}
35
36#[derive(Default, Debug, PartialEq, hard_xml::XmlRead, hard_xml::XmlWrite)]
37#[xml(tag = "Integer")]
38pub struct IntegerAttributes {
39 #[xml(attr = "quantity")]
40 pub quantity: Option<String>,
41
42 #[xml(attr = "min")]
43 pub min: Option<f64>,
44
45 #[xml(attr = "max")]
47 pub max: Option<f64>,
48}