parse_sap_odata/oasis/
annotations.rs

1use serde::{Deserialize, Serialize};
2
3use super::annotation::Annotation;
4use crate::xml::default_xml_namespace_oasis;
5
6#[derive(Debug, Serialize, Deserialize)]
7#[serde(rename_all = "PascalCase")]
8pub struct Annotations {
9    #[serde(rename = "@xmlns", default = "default_xml_namespace_oasis")]
10    pub xml_namespace: String,
11    #[serde(rename = "@Target")]
12    pub target: Option<String>,
13    #[serde(rename = "Annotation")]
14    pub annotation_list: Option<Vec<Annotation>>,
15}