xsd-parser 1.5.2

Rust code generator for XML schema files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use xsd_parser_types::xml::Text;
pub type MixedChoiceList = MixedChoiceListType;
#[derive(Debug, Deserialize, Serialize)]
pub struct MixedChoiceListType {
    #[serde(default, rename = "$value")]
    pub content: Vec<MixedChoiceListTypeContent>,
}
#[derive(Debug, Deserialize, Serialize)]
pub enum MixedChoiceListTypeContent {
    #[serde(rename = "Fuu")]
    Fuu(i32),
    #[serde(rename = "Bar")]
    Bar(String),
    #[serde(rename = "$text")]
    Text(Text),
}