fmi-schema 0.7.0

XML schema support for FMI 2.0 and 3.0
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Default, PartialEq, Debug, hard_xml::XmlRead, hard_xml::XmlWrite)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[xml(tag = "Annotations", strict(unknown_attribute, unknown_element))]
pub struct Fmi3Annotations {
    #[xml(child = "Annotation")]
    pub annotations: Vec<Annotation>,
}

#[derive(Default, PartialEq, Debug, hard_xml::XmlRead, hard_xml::XmlWrite)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[xml(tag = "Annotation", strict(unknown_attribute, unknown_element))]
pub struct Annotation {
    #[xml(attr = "type")]
    pub r#type: String,
    #[xml(text)]
    pub content: String,
}