pub struct Enum {
pub name: String,
pub variants: Vec<EnumVariant>,
}
Expand description
An enum - note that in go-away these do not contain data.
A Rust enum that’s variants contain values will go to a UnionType
Fields§
§name: String
The name of the enum
variants: Vec<EnumVariant>
The enums variants
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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