pub struct EnumerationTypeVariant<'types> {
pub meta: &'types EnumerationMetaVariant,
pub s_name: String,
pub b_name: Literal,
pub variant_ident: Ident,
pub target_type: Option<PathData>,
}
Expand description
Represents a enumeration variant used by EnumerationData
.
Fields§
§meta: &'types EnumerationMetaVariant
Reference to the original type information.
s_name: String
Name of the attribute as string.
b_name: Literal
Name of the attribute as byte string literal.
variant_ident: Ident
Name of this variant.
target_type: Option<PathData>
Target type of this variant.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for EnumerationTypeVariant<'types>
impl<'types> RefUnwindSafe for EnumerationTypeVariant<'types>
impl<'types> !Send for EnumerationTypeVariant<'types>
impl<'types> !Sync for EnumerationTypeVariant<'types>
impl<'types> Unpin for EnumerationTypeVariant<'types>
impl<'types> UnwindSafe for EnumerationTypeVariant<'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