#[repr(u8)]pub enum SchemaTypes {
Single(SchemaType),
Multiple(Vec<SchemaType>),
}Expand description
JSON Schema type supports either a string or an array of strings.
Variants§
Single(SchemaType)
Multiple(Vec<SchemaType>)
Trait Implementations§
Source§impl Clone for SchemaTypes
impl Clone for SchemaTypes
Source§fn clone(&self) -> SchemaTypes
fn clone(&self) -> SchemaTypes
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 SchemaTypes
impl Debug for SchemaTypes
Source§impl<'ʄ> Facet<'ʄ> for SchemaTypes
impl<'ʄ> Facet<'ʄ> for SchemaTypes
Source§impl From<SchemaType> for SchemaTypes
impl From<SchemaType> for SchemaTypes
Source§fn from(value: SchemaType) -> Self
fn from(value: SchemaType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaTypes
impl RefUnwindSafe for SchemaTypes
impl Send for SchemaTypes
impl Sync for SchemaTypes
impl Unpin for SchemaTypes
impl UnsafeUnpin for SchemaTypes
impl UnwindSafe for SchemaTypes
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