pub struct EnumSchema { /* private fields */ }Expand description
A schema for an enum
Implementations§
Source§impl EnumSchema
impl EnumSchema
Sourcepub fn new(variants: impl IntoIterator<Item = SchemaLiteral>) -> Self
pub fn new(variants: impl IntoIterator<Item = SchemaLiteral>) -> Self
Create a new enum schema
Trait Implementations§
Source§impl Clone for EnumSchema
impl Clone for EnumSchema
Source§fn clone(&self) -> EnumSchema
fn clone(&self) -> EnumSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumSchema
impl Debug for EnumSchema
Auto Trait Implementations§
impl Freeze for EnumSchema
impl RefUnwindSafe for EnumSchema
impl Send for EnumSchema
impl Sync for EnumSchema
impl Unpin for EnumSchema
impl UnwindSafe for EnumSchema
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