pub struct ComplexMeta {
pub base: Base,
pub content: Option<Ident>,
pub min_occurs: MinOccurs,
pub max_occurs: MaxOccurs,
pub is_dynamic: bool,
pub is_mixed: bool,
pub attributes: AttributesMeta,
}
Expand description
Type information that contains data about a complex type.
Fields§
§base: Base
Base type of the complex type.
content: Option<Ident>
Content type information of the complex type that contains the actual information about the elements that are defined for this type.
min_occurs: MinOccurs
Minimum occurrence of this complex types content type.
max_occurs: MaxOccurs
Maximum occurrence of this complex types content type.
is_dynamic: bool
Whether the type is dynamic or not.
is_mixed: bool
Wether the content of this type is mixed (contains also text) or not.
attributes: AttributesMeta
List of attributes defined for this complex type.
Implementations§
Source§impl ComplexMeta
impl ComplexMeta
Sourcepub fn content_meta<'a>(&'a self, types: &'a MetaTypes) -> Option<&'a MetaType>
pub fn content_meta<'a>(&'a self, types: &'a MetaTypes) -> Option<&'a MetaType>
Get the meta type information of the content fo this complex type.
Sourcepub fn has_complex_all_content(&self, types: &MetaTypes) -> bool
pub fn has_complex_all_content(&self, types: &MetaTypes) -> bool
Returns true
if the content of this complex type information
is a MetaTypeVariant::All
, false
otherwise.
Sourcepub fn has_complex_choice_content(&self, types: &MetaTypes) -> bool
pub fn has_complex_choice_content(&self, types: &MetaTypes) -> bool
Returns true
if the content of this complex type information
is a MetaTypeVariant::Choice
, false
otherwise.
Sourcepub fn has_complex_sequence_content(&self, types: &MetaTypes) -> bool
pub fn has_complex_sequence_content(&self, types: &MetaTypes) -> bool
Returns true
if the content of this complex type information
is a MetaTypeVariant::Sequence
, false
otherwise.
Sourcepub fn has_complex_content(&self, types: &MetaTypes) -> bool
pub fn has_complex_content(&self, types: &MetaTypes) -> bool
Returns true
if the content of this complex type information
is a MetaTypeVariant::All
, MetaTypeVariant::Choice
or MetaTypeVariant::Sequence
,
false
otherwise.
Sourcepub fn has_simple_content(&self, types: &MetaTypes) -> bool
pub fn has_simple_content(&self, types: &MetaTypes) -> bool
Returns true
if the content of this complex type information
is a MetaTypeVariant::BuildIn
, MetaTypeVariant::Union
or MetaTypeVariant::Enumeration
,
false
otherwise.
Trait Implementations§
Source§impl Clone for ComplexMeta
impl Clone for ComplexMeta
Source§fn clone(&self) -> ComplexMeta
fn clone(&self) -> ComplexMeta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComplexMeta
impl Debug for ComplexMeta
Source§impl Default for ComplexMeta
impl Default for ComplexMeta
Source§impl From<ComplexMeta> for MetaType
impl From<ComplexMeta> for MetaType
Source§fn from(value: ComplexMeta) -> Self
fn from(value: ComplexMeta) -> Self
Source§impl TypeEq for ComplexMeta
impl TypeEq for ComplexMeta
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
Hasher
.Source§fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
other
instance using the passed
types
to resolve identifiers.Source§fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
Hasher
.