pub struct EnumType {
pub default_index: Option<usize>,
pub values: Vec<LiteralValue>,
pub variants: Option<IndexMap<String, Box<SchemaField>>>,
}Fields§
§default_index: Option<usize>§values: Vec<LiteralValue>§variants: Option<IndexMap<String, Box<SchemaField>>>Implementations§
Source§impl EnumType
impl EnumType
Sourcepub fn new<I>(values: I) -> Selfwhere
I: IntoIterator<Item = LiteralValue>,
pub fn new<I>(values: I) -> Selfwhere
I: IntoIterator<Item = LiteralValue>,
Create an enumerable type with the provided literal values.
Trait Implementations§
impl StructuralPartialEq for EnumType
Auto Trait Implementations§
impl Freeze for EnumType
impl RefUnwindSafe for EnumType
impl Send for EnumType
impl Sync for EnumType
impl Unpin for EnumType
impl UnwindSafe for EnumType
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