pub struct ComplexTypeElement<'types> {
pub info: &'types ElementInfo,
pub occurs: Occurs,
pub s_name: String,
pub b_name: Literal,
pub tag_name: String,
pub field_ident: Ident,
pub variant_ident: Ident,
pub target_type: IdentPath,
pub need_indirection: bool,
pub target_is_dynamic: bool,
}Expand description
Contains the details of an XML element.
Is used in ComplexTypeEnum or StructMode.
Fields§
§info: &'types ElementInfoReference to the original type information.
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: StringName of the XML tag of the element.
field_ident: IdentField identifier of the element.
variant_ident: IdentVariant identifier of the element.
target_type: IdentPathActual 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.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for ComplexTypeElement<'types>
impl<'types> RefUnwindSafe for ComplexTypeElement<'types>
impl<'types> !Send for ComplexTypeElement<'types>
impl<'types> !Sync for ComplexTypeElement<'types>
impl<'types> Unpin for ComplexTypeElement<'types>
impl<'types> UnwindSafe for ComplexTypeElement<'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