pub enum StructMode<'types> {
Empty {
allow_any: bool,
},
Content {
content: ComplexDataContent<'types>,
},
All {
elements: Vec<ComplexDataElement<'types>>,
allow_any: bool,
},
Sequence {
elements: Vec<ComplexDataElement<'types>>,
allow_any: bool,
},
}
Expand description
Content of a rust struct.
Used by ComplexDataStruct
to tell how the actual content of the struct
should be rendered.
Variants§
Empty
The struct does not contain any xs:element
s.
Fields
Content
The content of the struct is another generated type that contains the actual data.
Fields
§
content: ComplexDataContent<'types>
Information about the content of the struct.
All
The content of the struct is a xs:all
group.
Fields
§
elements: Vec<ComplexDataElement<'types>>
List of xs:element
s inside the group.
Sequence
The content of the struct is a xs:sequence
group.
Fields
§
elements: Vec<ComplexDataElement<'types>>
List of xs:element
s inside the group.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for StructMode<'types>
impl<'types> RefUnwindSafe for StructMode<'types>
impl<'types> !Send for StructMode<'types>
impl<'types> !Sync for StructMode<'types>
impl<'types> Unpin for StructMode<'types>
impl<'types> UnwindSafe for StructMode<'types>
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