pub struct Enum {
pub name: String,
pub namespace: Option<String>,
pub aliases: Vec<String>,
pub doc: Option<String>,
pub symbols: Vec<String>,
pub default: Option<String>,
}
Expand description
Struct to hold data from a Schema::Enum
.
Fields§
§name: String
Its name
namespace: Option<String>
Its optional namespace
aliases: Vec<String>
Its aliases
doc: Option<String>
Its optional documentation
symbols: Vec<String>
Its set of symbols
default: Option<String>
Its default symbol
Implementations§
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 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