pub struct ComplexTypeAttribute<'types> {
pub info: &'types AttributeInfo,
pub ident: Ident,
pub s_name: String,
pub b_name: Literal,
pub tag_name: String,
pub is_option: bool,
pub target_type: IdentPath,
pub default_value: Option<TokenStream>,
}Expand description
Contains the details of an XML attribute.
Is used in ComplexTypeStruct.
Fields§
§info: &'types AttributeInfoReference 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: StringName of the attribute inside the XML tag.
is_option: booltrue if this attribute is optional, false otherwise.
target_type: IdentPathThe 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 ComplexTypeAttribute<'types>
impl<'types> RefUnwindSafe for ComplexTypeAttribute<'types>
impl<'types> !Send for ComplexTypeAttribute<'types>
impl<'types> !Sync for ComplexTypeAttribute<'types>
impl<'types> Unpin for ComplexTypeAttribute<'types>
impl<'types> UnwindSafe for ComplexTypeAttribute<'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