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>,
}
Expand description
Contains the details of an XML attribute.
Is used in ComplexDataStruct
.
Fields§
§meta: &'types AttributeMeta
Reference to the original type information.
ident: Ident
Identifier of the attribute.
s_name: String
Name of the attribute as string.
b_name: Literal
Name of the attribute as byte string literal.
tag_name: TagName<'types>
Name of the attribute inside the XML tag.
is_option: bool
true
if this attribute is optional, false
otherwise.
target_type: PathData
The actual target type of the attribute.
default_value: Option<TokenStream>
The default value of 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