xml-schema-derive 0.3.0

Structure generator from XSD source file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::xsd::attribute::Attribute;

#[derive(Clone, Default, Debug, PartialEq, YaDeserialize)]
#[yaserde(
  rename = "attributeGroup",
  prefix = "xs",
  namespace = "xs: http://www.w3.org/2001/XMLSchema"
)]
pub struct AttributeGroup {
  #[yaserde(prefix = "xs", attribute)]
  pub name: Option<String>,
  #[yaserde(rename = "ref", attribute)]
  pub reference: String,
  #[yaserde(rename = "attribute")]
  pub attributes: Vec<Attribute>,
  // #[yaserde(rename = "attributeGroup")]
  // pub attribute_group: Vec<AttributeGroup>,
}