pub struct VariantDef {
pub name: String,
pub description: Option<String>,
pub fields: Vec<FieldDef>,
pub vref: Option<TypeRef>,
}Expand description
A variant of an enum.
Fields§
§name: String§description: Option<String>§fields: Vec<FieldDef>§vref: Option<TypeRef>An untagged (or external non-struct) variant’s type; left out when absent.
Trait Implementations§
Source§impl Clone for VariantDef
impl Clone for VariantDef
Source§impl Debug for VariantDef
impl Debug for VariantDef
Source§impl PartialEq for VariantDef
impl PartialEq for VariantDef
impl StructuralPartialEq for VariantDef
Auto Trait Implementations§
impl Forget for VariantDef
impl Freeze for VariantDef
impl Move for VariantDef
impl RefUnwindSafe for VariantDef
impl Send for VariantDef
impl Sync for VariantDef
impl Unpin for VariantDef
impl UnsafeUnpin for VariantDef
impl UnwindSafe for VariantDef
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