pub struct EnumVariant {
pub name: String,
pub serialized_name: String,
}Expand description
An enum variant - note that these are just names and are serialized as strings.
Fields§
§name: StringThe name of the variant in code.
serialized_name: StringThe name of the variant when serialized.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumVariant
impl RefUnwindSafe for EnumVariant
impl Send for EnumVariant
impl Sync for EnumVariant
impl Unpin for EnumVariant
impl UnwindSafe for EnumVariant
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