pub struct ComplexBase<'types> {
pub type_ident: Ident,
pub trait_impls: Vec<TokenStream>,
pub tag_name: Option<TagName<'types>>,
pub has_any: bool,
pub is_complex: bool,
pub is_dynamic: bool,
pub is_content: bool,
pub serializer_ident: Ident,
pub serializer_state_ident: Ident,
pub deserializer_ident: Ident,
pub deserializer_state_ident: Ident,
}
Expand description
Contains basic information for that is shared between ComplexDataEnum
and ComplexDataStruct
.
Fields§
§type_ident: Ident
The identifier of the rendered type.
trait_impls: Vec<TokenStream>
List of traits that needs to be implemented by this type.
tag_name: Option<TagName<'types>>
Name of the XML tag of the type (if the type represents an element in the XML).
has_any: bool
Whether the type has at least one xs:any
element or not.
is_complex: bool
true
if the type is a complex type, false
otherwise.
is_dynamic: bool
true
if the type is dynamic, false
otherwise.
is_content: bool
true
if the type is the content type of another complex type.
serializer_ident: Ident
Identifier of the serializer for this type.
serializer_state_ident: Ident
Identifier of the state of the serializer for this type.
deserializer_ident: Ident
Identifier of the deserializer for this type.
deserializer_state_ident: Ident
Identifier of the state of the deserializer for this type.
Implementations§
Source§impl<'types> ComplexBase<'types>
impl<'types> ComplexBase<'types>
Sourcepub fn element_tag(&self) -> Option<&TagName<'types>>
pub fn element_tag(&self) -> Option<&TagName<'types>>
Returns the name of the element tag, if type is represented by a XML element.
Sourcepub fn represents_element(&self) -> bool
pub fn represents_element(&self) -> bool
Returns true
if this type represents an element, false
otherwise.