pub struct ComplexDataAttribute<'types> {
pub meta: &'types AttributeMeta,
pub ident: Ident,
pub s_name: String,
pub b_name: Literal,
pub tag_name: TagName<'types>,
pub is_option: bool,
pub target_type: PathData,
pub default_value: Option<TokenStream>,
pub extra_attributes: Vec<TokenStream>,
}Expand description
Contains the details of an XML attribute.
Is used in ComplexDataStruct.
Fields§
§meta: &'types AttributeMetaReference to the original type information.
ident: IdentIdentifier of the attribute.
s_name: StringName of the attribute as string.
b_name: LiteralName of the attribute as byte string literal.
tag_name: TagName<'types>Name of the attribute inside the XML tag.
is_option: booltrue if this attribute is optional, false otherwise.
target_type: PathDataThe actual target type of the attribute.
default_value: Option<TokenStream>The default value of the attribute.
extra_attributes: Vec<TokenStream>Additional attributes that will be added to the attribute.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for ComplexDataAttribute<'types>
impl<'types> RefUnwindSafe for ComplexDataAttribute<'types>
impl<'types> !Send for ComplexDataAttribute<'types>
impl<'types> !Sync for ComplexDataAttribute<'types>
impl<'types> Unpin for ComplexDataAttribute<'types>
impl<'types> UnwindSafe for ComplexDataAttribute<'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