pub struct Schema {
Show 52 fields pub ref_value: Option<String>, pub defs: Option<IndexMap<String, Schema, RandomState>>, pub id: Option<String>, pub comment: Option<String>, pub title: Option<String>, pub description: Option<String>, pub schema_type: Option<OneOrMultiTypes>, pub default: Option<Value>, pub deprecated: Option<bool>, pub maximum: Option<Number>, pub minimum: Option<Number>, pub exclusive_maximum: Option<bool>, pub exclusive_minimum: Option<bool>, pub multiple_of: Option<f64>, pub max_length: Option<u32>, pub min_length: Option<u32>, pub pattern: Option<String>, pub format: Option<String>, pub content_encoding: Option<String>, pub content_media_type: Option<String>, pub items: Option<OneOrMultiSchemas>, pub max_items: Option<u32>, pub min_items: Option<u32>, pub unique_items: Option<bool>, pub additional_items: Option<BoolOrSchema>, pub contains: Option<Box<Schema, Global>>, pub max_contains: Option<u32>, pub min_contains: Option<u32>, pub unevaluated_items: Option<BoolOrSchema>, pub properties: Option<IndexMap<String, Schema, RandomState>>, pub max_properties: Option<u32>, pub min_properties: Option<u32>, pub required: Option<Vec<String, Global>>, pub pattern_properties: Option<IndexMap<String, Schema, RandomState>>, pub additional_properties: Option<BoolOrSchema>, pub dependent_required: Option<IndexMap<String, Vec<String, Global>, RandomState>>, pub dependent_schemas: Option<IndexMap<String, Schema, RandomState>>, pub property_names: Option<Box<Schema, Global>>, pub unevaluated_properties: Option<BoolOrSchema>, pub enum_value: Option<Vec<Value, Global>>, pub const_value: Option<Value>, pub examples: Option<Vec<Value, Global>>, pub read_only: Option<bool>, pub write_only: Option<bool>, pub all_of: Option<Vec<Schema, Global>>, pub one_of: Option<Vec<Schema, Global>>, pub any_of: Option<Vec<Schema, Global>>, pub not: Option<Box<Schema, Global>>, pub if_value: Option<Box<Schema, Global>>, pub then_value: Option<Box<Schema, Global>>, pub else_value: Option<Box<Schema, Global>>, pub unknown: Option<Map<String, Value>>,
}

Fields

ref_value: Option<String>defs: Option<IndexMap<String, Schema, RandomState>>id: Option<String>comment: Option<String>title: Option<String>description: Option<String>schema_type: Option<OneOrMultiTypes>default: Option<Value>deprecated: Option<bool>maximum: Option<Number>minimum: Option<Number>exclusive_maximum: Option<bool>exclusive_minimum: Option<bool>multiple_of: Option<f64>max_length: Option<u32>min_length: Option<u32>pattern: Option<String>format: Option<String>content_encoding: Option<String>content_media_type: Option<String>items: Option<OneOrMultiSchemas>max_items: Option<u32>min_items: Option<u32>unique_items: Option<bool>additional_items: Option<BoolOrSchema>contains: Option<Box<Schema, Global>>max_contains: Option<u32>min_contains: Option<u32>unevaluated_items: Option<BoolOrSchema>properties: Option<IndexMap<String, Schema, RandomState>>max_properties: Option<u32>min_properties: Option<u32>required: Option<Vec<String, Global>>pattern_properties: Option<IndexMap<String, Schema, RandomState>>additional_properties: Option<BoolOrSchema>dependent_required: Option<IndexMap<String, Vec<String, Global>, RandomState>>dependent_schemas: Option<IndexMap<String, Schema, RandomState>>property_names: Option<Box<Schema, Global>>unevaluated_properties: Option<BoolOrSchema>enum_value: Option<Vec<Value, Global>>const_value: Option<Value>examples: Option<Vec<Value, Global>>read_only: Option<bool>write_only: Option<bool>all_of: Option<Vec<Schema, Global>>one_of: Option<Vec<Schema, Global>>any_of: Option<Vec<Schema, Global>>not: Option<Box<Schema, Global>>if_value: Option<Box<Schema, Global>>then_value: Option<Box<Schema, Global>>else_value: Option<Box<Schema, Global>>unknown: Option<Map<String, Value>>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.