pub struct ComplexDataElement<'types> {
pub origin: ComplexDataElementOrigin<'types>,
pub occurs: Occurs,
pub s_name: String,
pub b_name: Literal,
pub tag_name: TagName<'types>,
pub field_ident: Ident,
pub variant_ident: Ident,
pub target_type: PathData,
pub need_indirection: bool,
pub target_is_dynamic: bool,
pub extra_attributes: Vec<TokenStream>,
}Expand description
Contains the details of an XML element.
Is used in ComplexDataEnum or StructMode.
Fields§
§origin: ComplexDataElementOrigin<'types>Origin of the element
occurs: OccursOccurrence of the element within it’s parent type.
s_name: StringName of the element as string.
b_name: LiteralName of the element as byte string literal.
tag_name: TagName<'types>Name of the XML tag of the element.
field_ident: IdentField identifier of the element.
variant_ident: IdentVariant identifier of the element.
target_type: PathDataActual target type of the element.
need_indirection: booltrue if this element needs some indirection
(like a Box or a Vec), false otherwise.
target_is_dynamic: booltrue if the target type of this element is dynamic,
false otherwise.
extra_attributes: Vec<TokenStream>Additional attributes that will be added to the element.
Implementations§
Source§impl ComplexDataElement<'_>
impl ComplexDataElement<'_>
Sourcepub fn meta(&self) -> &ElementMeta
pub fn meta(&self) -> &ElementMeta
Returns the ElementMeta this element was created for.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for ComplexDataElement<'types>
impl<'types> RefUnwindSafe for ComplexDataElement<'types>
impl<'types> !Send for ComplexDataElement<'types>
impl<'types> !Sync for ComplexDataElement<'types>
impl<'types> Unpin for ComplexDataElement<'types>
impl<'types> UnwindSafe for ComplexDataElement<'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