struct Variant
pub struct Variant :: [Debug]
Conforms to Debug.
A variant of an enum: a unit, a tuple payload, or a struct payload.
Fields
pub name: Ident
pub tuple: ?Type[]
pub fields: ?FieldDecl[]
pub attributes: Attribute[]
pub span: Span