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: &'static str,
},
}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<SchemaType> for SchemaType
impl PartialEq<SchemaType> 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 ==.