pub struct ComplexInfo {
pub base: Base,
pub content: Option<Ident>,
pub min_occurs: MinOccurs,
pub max_occurs: MaxOccurs,
pub is_dynamic: bool,
pub attributes: AttributesInfo,
pub any_attribute: Option<AnyAttributeInfo>,
}Expand description
Type information that contains data about a complex type.
Fields§
§base: BaseBase 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: MinOccursMinimum occurrence of this complex types content type.
max_occurs: MaxOccursMaximum occurrence of this complex types content type.
is_dynamic: boolWhether the type is dynamic or not.
attributes: AttributesInfoList of attributes defined for this complex type.
any_attribute: Option<AnyAttributeInfo>If this complex type accepts any other attribute, that is not defined by
this type, this contains the information for these attributes, otherwise
it is set to None.
Implementations§
Source§impl ComplexInfo
impl ComplexInfo
Sourcepub fn has_complex_content(&self, types: &Types) -> bool
pub fn has_complex_content(&self, types: &Types) -> bool
Returns true if the content of this complex type information
is a Type::All, Type::Choice or Type::Sequence,
false otherwise.
Sourcepub fn has_simple_content(&self, types: &Types) -> bool
pub fn has_simple_content(&self, types: &Types) -> bool
Returns true if the content of this complex type information
is a Type::BuildIn, Type::Union or Type::Enumeration,
false otherwise.
Trait Implementations§
Source§impl Clone for ComplexInfo
impl Clone for ComplexInfo
Source§fn clone(&self) -> ComplexInfo
fn clone(&self) -> ComplexInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComplexInfo
impl Debug for ComplexInfo
Source§impl Default for ComplexInfo
impl Default for ComplexInfo
Source§impl TypeEq for ComplexInfo
impl TypeEq for ComplexInfo
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &Types)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &Types)
Hasher.Source§fn type_eq(&self, other: &Self, types: &Types) -> bool
fn type_eq(&self, other: &Self, types: &Types) -> bool
other instance using the passed
types to resolve identifiers.Source§fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &Types)
Hasher.