fmi_schema/fmi3/
annotation.rs1#[derive(Default, PartialEq, Debug, hard_xml::XmlRead, hard_xml::XmlWrite)]
2#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
3#[xml(tag = "Annotations", strict(unknown_attribute, unknown_element))]
4pub struct Fmi3Annotations {
5 #[xml(child = "Annotation")]
6 pub annotations: Vec<Annotation>,
7}
8
9#[derive(Default, PartialEq, Debug, hard_xml::XmlRead, hard_xml::XmlWrite)]
10#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
11#[xml(tag = "Annotation", strict(unknown_attribute, unknown_element))]
12pub struct Annotation {
13 #[xml(attr = "type")]
14 pub r#type: String,
15 #[xml(text)]
16 pub content: String,
17}