lumeohq / xsd-parser-rs

A xsd/wsdl => rust code generator written in rust
Apache License 2.0
100 stars 39 forks source link

Add support for ComplexContent and SimpleContent #1

Closed LeonidKrutovsky closed 4 years ago

LeonidKrutovsky commented 4 years ago
<xs:complexType name="CertificateUsage">
    <xs:simpleContent>
        <xs:extension base="xs:string">
            <xs:attribute name="Critical" type="xs:boolean" use="required"/>
        </xs:extension>
    </xs:simpleContent>
</xs:complexType>
LeonidKrutovsky commented 4 years ago
pub struct CertificateUsage {
   #[yaserde(rename = "base")]
  pub base: String,  
   #[yaserde(rename = "Critical")]
  pub critical: bool
}