pub enum ComplexContent {
Sequence(Vec<SequenceElement>),
Choice(Vec<ChoiceVariant>),
SimpleContent {
base: String,
attributes: Vec<Attribute>,
},
Any {
namespace: Option<String>,
},
}Expand description
The content model of a complex type.
Variants§
Sequence(Vec<SequenceElement>)
<xs:sequence> — maps to a struct with ordered fields.
Choice(Vec<ChoiceVariant>)
<xs:choice> — maps to a Rust enum.
SimpleContent
<xs:simpleContent><xs:extension base="…"> — a value type with attributes.
Fields
Any
<xs:any> wildcard or empty body — used for opaque wrapper types.
Trait Implementations§
Source§impl Clone for ComplexContent
impl Clone for ComplexContent
Source§fn clone(&self) -> ComplexContent
fn clone(&self) -> ComplexContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComplexContent
impl Debug for ComplexContent
Source§impl PartialEq for ComplexContent
impl PartialEq for ComplexContent
impl StructuralPartialEq for ComplexContent
Auto Trait Implementations§
impl Freeze for ComplexContent
impl RefUnwindSafe for ComplexContent
impl Send for ComplexContent
impl Sync for ComplexContent
impl Unpin for ComplexContent
impl UnsafeUnpin for ComplexContent
impl UnwindSafe for ComplexContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more