pub struct ComplexBase<'types> {
pub flags: ComplexFlags,
pub type_ident: Ident,
pub trait_impls: Vec<TokenStream>,
pub tag_name: Option<TagName<'types>>,
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§
§flags: ComplexFlagsFlags set for this type.
type_ident: IdentThe 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).
serializer_ident: IdentIdentifier of the serializer for this type.
serializer_state_ident: IdentIdentifier of the state of the serializer for this type.
deserializer_ident: IdentIdentifier of the deserializer for this type.
deserializer_state_ident: IdentIdentifier of the state of the deserializer for this type.
Implementations§
Source§impl<'types> ComplexBase<'types>
impl<'types> ComplexBase<'types>
Sourcepub fn is_complex(&self) -> bool
pub fn is_complex(&self) -> bool
true if the type is a complex type, false otherwise.
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
true if the type is dynamic, false otherwise.
Sourcepub fn is_content(&self) -> bool
pub fn is_content(&self) -> bool
true if the type is the content type of another complex type.
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.