You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<xs:complexTypename="RightsController">
<xs:annotation>
<xs:documentationsource="ddex:Definition">A ddex:Composite containing details of a ddex:RightsController. ddex:RightsControllers are typicallydescribed by ddex:Name, ddex:Identifier and role(s).</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:elementname="PartyId"type="ddexC:PartyId">
<xs:annotation>
<xs:documentationsource="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:sequence>
<xs:elementname="PartyName"maxOccurs="unbounded"type="ddexC:PartyName">
<xs:annotation>
<xs:documentationsource="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementname="PartyId"minOccurs="0"type="ddexC:PartyId">
<xs:annotation>
<xs:documentationsource="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
<xs:elementname="RightsControllerRole"minOccurs="0"maxOccurs="unbounded"type="ddex:RightsControllerRole">
<xs:annotation>
<xs:documentationsource="ddex:Definition">A role that describes the ddex:Party involved in the administration of ddex:Rights.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:elementname="RightShareUnknown"type="xs:boolean">
<xs:annotation>
<xs:documentationsource="ddex:Definition">The ddex:Flag indicating whether the ddex:RightSharePercentage is unknown (=True) or not (=False).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementname="RightSharePercentage"type="xs:string">
<xs:annotation>
<xs:documentationsource="ddex:Definition">The share of the licensed Rights owned by the ddexC:RightsController. ddex:RightShare information is given as a xs:decimal value (e.g. '0.125' represents 12.5%). If no information is given, 100% is assumed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:elementname="RightsControllerType"minOccurs="0"type="ddex:RightsControllerType">
<xs:annotation>
<xs:documentationsource="ddex:Definition">A type of the ddex:RightsController.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementname="TerritoryOfRegistration"minOccurs="0"type="ddexC:TerritoryCode">
<xs:annotation>
<xs:documentationsource="ddex:Definition">The country of registration (represented by an ISO 3166-1 iso3166a2:TerritoryCode).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementname="StartDate"type="xs:date">
<xs:annotation>
<xs:documentationsource="ddex:Definition">The Date that marks the beginning of the title (in ISO 8601:2004 format: YYYY-MM-DD). This cannot be a Date in the future.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementname="EndDate"minOccurs="0"type="xs:date">
<xs:annotation>
<xs:documentationsource="ddex:Definition">The Date that marks the end of the title (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attributename="SequenceNumber"type="xs:integer">
<xs:annotation>
<xs:documentationsource="ddex:Definition">The number indicating the order of the ddexC:RightsController in a group of ddex:RightsControllers. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
I get:
// A ddex:Composite containing details of a ddex:RightsController.// ddex:RightsControllers are typicallydescribed by ddex:Name, ddex:Identifier// and role(s).#[derive(Default,PartialEq,Debug,YaSerialize,YaDeserialize)]#[yaserde(prefix = "ern", namespace = "ern: http://ddex.net/xml/ern/351")]pubstructRightsController{#[yaserde(prefix = "ern", rename = "RightsControllerChoice")]pubrights_controller_choice: rights_controller::RightsControllerChoice,// A role that describes the ddex:Party involved in the administration of// ddex:Rights.#[yaserde(prefix = "ern", rename = "RightsControllerRole")]pubrights_controller_role:Vec<ddex::RightsControllerRole>,#[yaserde(prefix = "ern", rename = "RightsControllerChoice")]pubrights_controller_choice: rights_controller::RightsControllerChoice,// A type of the ddex:RightsController.#[yaserde(prefix = "ern", rename = "RightsControllerType")]pubrights_controller_type:Option<ddex::RightsControllerType>,// The country of registration (represented by an ISO 3166-1// iso3166a2:TerritoryCode).#[yaserde(prefix = "ern", rename = "TerritoryOfRegistration")]pubterritory_of_registration:Option<ddexC::TerritoryCode>,// The Date that marks the beginning of the title (in ISO 8601:2004 format:// YYYY-MM-DD). This cannot be a Date in the future.#[yaserde(prefix = "ern", rename = "StartDate")]pubstart_date: xs::Date,// The Date that marks the end of the title (in ISO 8601:2004 format:// YYYY-MM-DD).#[yaserde(prefix = "ern", rename = "EndDate")]pubend_date:Option<xs::Date>,// The number indicating the order of the ddexC:RightsController in a group// of ddex:RightsControllers. This is represented in an XML schema as an XML// ddex:Attribute.#[yaserde(attribute, rename = "SequenceNumber")]pubsequence_number:Option<xs::Integer>,}pubmod rights_controller {usesuper::*;#[derive(PartialEq,Debug,YaSerialize,YaDeserialize)]#[yaserde(prefix = "ern", namespace = "ern: http://ddex.net/xml/ern/351")]pubenumRightsControllerChoice{// A ddex:Composite containing details of the ddex:PartyId for the// ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a// ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to// identify ddex:Artists, ddex:Producers or other ddex:Creators.PartyId(ddexC::PartyId),
__Unknown__(String),}implDefaultforRightsControllerChoice{fndefault() -> RightsControllerChoice{Self::__Unknown__("No valid variants".into())}}implValidateforRightsControllerChoice{}#[derive(PartialEq,Debug,YaSerialize,YaDeserialize)]#[yaserde(prefix = "ern", namespace = "ern: http://ddex.net/xml/ern/351")]pubenumRightsControllerChoice{// The ddex:Flag indicating whether the ddex:RightSharePercentage is unknown// (=True) or not (=False).RightShareUnknown(bool),// The share of the licensed Rights owned by the ddexC:RightsController.// ddex:RightShare information is given as a xs:decimal value (e.g. '0.125'// represents 12.5%). If no information is given, 100% is assumed.RightSharePercentage(String),
__Unknown__(String),}implDefaultforRightsControllerChoice{fndefault() -> RightsControllerChoice{Self::__Unknown__("No valid variants".into())}}implValidateforRightsControllerChoice{}}
Note the two rights_controller_choice fields and two RightsControllerChoice structs.
The text was updated successfully, but these errors were encountered:
Given this snippet:
I get:
Note the two
rights_controller_choice
fields and twoRightsControllerChoice
structs.The text was updated successfully, but these errors were encountered: