pub struct UnionTypeVariant<'types> {
pub meta: &'types UnionMetaType,
pub s_name: String,
pub b_name: Literal,
pub target_type: PathData,
pub variant_ident: Ident,
}
Expand description
Type variant used in UnionData
.
Fields§
§meta: &'types UnionMetaType
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.
target_type: PathData
The type that is stored by the this variant.
variant_ident: Ident
Identifier of this variant.
Trait Implementations§
Auto Trait Implementations§
impl<'types> Freeze for UnionTypeVariant<'types>
impl<'types> RefUnwindSafe for UnionTypeVariant<'types>
impl<'types> !Send for UnionTypeVariant<'types>
impl<'types> !Sync for UnionTypeVariant<'types>
impl<'types> Unpin for UnionTypeVariant<'types>
impl<'types> UnwindSafe for UnionTypeVariant<'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