pub struct ComplexDataContent<'types> {
pub occurs: Occurs,
pub simple_type: Option<&'types Ident>,
pub min_occurs: MinOccurs,
pub max_occurs: MaxOccurs,
pub target_type: PathData,
pub extra_attributes: Vec<TokenStream>,
}Expand description
Contains details about the content of a struct.
Is used by StructMode to define the content of a struct.
Fields§
§occurs: OccursOccurrence of the content within this struct.
simple_type: Option<&'types Ident>Type identifier of the content type if this ComplexDataContent was
constructed from a complex type with simple content.
min_occurs: MinOccursMinimum occurrence.
max_occurs: MaxOccursMaximum occurrence.
target_type: PathDataActual target type of the content.
extra_attributes: Vec<TokenStream>Additional attributes that will be added to the element.
Implementations§
Source§impl ComplexDataContent<'_>
impl ComplexDataContent<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for ComplexDataContent<'types>
impl<'types> RefUnwindSafe for ComplexDataContent<'types>
impl<'types> !Send for ComplexDataContent<'types>
impl<'types> !Sync for ComplexDataContent<'types>
impl<'types> Unpin for ComplexDataContent<'types>
impl<'types> UnwindSafe for ComplexDataContent<'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