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,
}
Expand description
Contains the details of an XML element.
Is used in ComplexDataEnum
or StructMode
.
Fields§
§origin: ComplexDataElementOrigin<'types>
Origin of the element
occurs: Occurs
Occurrence of the element within it’s parent type.
s_name: String
Name of the element as string.
b_name: Literal
Name of the element as byte string literal.
tag_name: TagName<'types>
Name of the XML tag of the element.
field_ident: Ident
Field identifier of the element.
variant_ident: Ident
Variant identifier of the element.
target_type: PathData
Actual target type of the element.
need_indirection: bool
true
if this element needs some indirection
(like a Box
or a Vec
), false
otherwise.
target_is_dynamic: bool
true
if the target type of this element is dynamic,
false
otherwise.
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