Enum jtd_derive::schema::SchemaType
source · pub enum SchemaType {
Empty,
Type {
type: TypeSchema,
},
Enum {
enum: Vec<&'static str>,
},
Elements {
elements: Box<Schema>,
},
Properties {
properties: HashMap<&'static str, Schema>,
optional_properties: HashMap<&'static str, Schema>,
additional_properties: bool,
},
Values {
values: Box<Schema>,
},
Discriminator {
discriminator: &'static str,
mapping: HashMap<&'static str, Schema>,
},
Ref {
ref: String,
},
}Expand description
The 8 forms a schema can take. For more info see here.
Variants§
Trait Implementations§
source§impl Clone for SchemaType
impl Clone for SchemaType
source§fn clone(&self) -> SchemaType
fn clone(&self) -> SchemaType
Returns a copy 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
source§impl PartialEq for SchemaType
impl PartialEq for SchemaType
source§fn eq(&self, other: &SchemaType) -> bool
fn eq(&self, other: &SchemaType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SchemaType
impl Serialize for SchemaType
impl Eq for SchemaType
impl StructuralEq for SchemaType
impl StructuralPartialEq for SchemaType
Auto Trait Implementations§
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