pub enum SchemaType {
String(StringSchema),
Number(NumberSchema),
Integer(IntegerSchema),
Boolean(BooleanSchema),
Array(ArraySchema),
Object(JsonObjectSchema),
Enum(EnumSchema),
AnyOf(AnyOfSchema),
OneOf(OneOfSchema),
Const(ConstSchema),
IfThen(IfThenSchema),
Null,
}Expand description
The type of a schema
Variants§
String(StringSchema)
A string schema
Number(NumberSchema)
A floating point or integer schema
Integer(IntegerSchema)
An integer schema
Boolean(BooleanSchema)
A boolean schema
Array(ArraySchema)
An array schema
Object(JsonObjectSchema)
An object schema
Enum(EnumSchema)
An enum schema
AnyOf(AnyOfSchema)
A schema that matches any of the composite schemas
OneOf(OneOfSchema)
A schema that matches one of the composite schemas
Const(ConstSchema)
A constant schema
IfThen(IfThenSchema)
An if-then schema
Null
The null schema
Trait Implementations§
Source§impl Clone for SchemaType
impl Clone for SchemaType
Source§fn clone(&self) -> SchemaType
fn clone(&self) -> SchemaType
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 SchemaType
impl Debug for SchemaType
Auto Trait Implementations§
impl Freeze for SchemaType
impl RefUnwindSafe for SchemaType
impl Send for SchemaType
impl Sync for SchemaType
impl Unpin for SchemaType
impl UnwindSafe for SchemaType
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