pub struct Enum {
pub name: RustIdent,
pub doc: Option<String>,
pub deprecated: Option<Deprecation>,
pub kind: EnumKind,
}Expand description
A generated enum.
Fields§
§name: RustIdentType name.
doc: Option<String>Doc comment derived from the schema description.
deprecated: Option<Deprecation>#[deprecated] annotation from deprecated: true (+ x-deprecated-reason).
kind: EnumKindThe flavour of enum to emit.
Trait Implementations§
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnsafeUnpin 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