Closed LeonidKrutovsky closed 4 years ago
Rust does not support nested types. I think we can create a private namespace in targetNamespace (mod nested { ...) and describe all nested types there. Thus, we will be able to repeat the structure of the xsd document in rust code as closely as possible.
mod nested {
pub struct StringItems{
item: Vec<String>,
}
}
type StringItems = nested::StringItems;
Type alias only for top-level elements (schema element children). For the elements with the parent sequence, it will be necessary to create the structure field with the type of nested.