#[non_exhaustive]pub struct JsonSchema {Show 38 fields
pub type_: JsonSchemaType,
pub properties: Option<Value>,
pub required: Option<Vec<String>>,
pub additional_properties: Option<Value>,
pub defs: Option<Value>,
pub definitions: Option<Value>,
pub schema_uri: Option<String>,
pub id: Option<String>,
pub reference: Option<String>,
pub anchor: Option<String>,
pub dynamic_reference: Option<String>,
pub dynamic_anchor: Option<String>,
pub comment: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub default_value: Option<Value>,
pub examples: Option<Vec<Value>>,
pub enum_values: Option<Vec<Value>>,
pub const_value: Option<Value>,
pub all_of: Option<Vec<Value>>,
pub any_of: Option<Vec<Value>>,
pub one_of: Option<Vec<Value>>,
pub not: Option<Value>,
pub if_schema: Option<Value>,
pub then_schema: Option<Value>,
pub else_schema: Option<Value>,
pub pattern_properties: Option<Value>,
pub property_names: Option<Value>,
pub dependent_required: Option<Value>,
pub dependent_schemas: Option<Value>,
pub dependencies: Option<Value>,
pub unevaluated_properties: Option<Value>,
pub min_properties: Option<u64>,
pub max_properties: Option<u64>,
pub read_only: Option<bool>,
pub write_only: Option<bool>,
pub deprecated: Option<bool>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_: JsonSchemaType§properties: Option<Value>§required: Option<Vec<String>>§additional_properties: Option<Value>§defs: Option<Value>§definitions: Option<Value>§schema_uri: Option<String>§id: Option<String>§reference: Option<String>§anchor: Option<String>§dynamic_reference: Option<String>§dynamic_anchor: Option<String>§comment: Option<String>§title: Option<String>§description: Option<String>§default_value: Option<Value>§examples: Option<Vec<Value>>§enum_values: Option<Vec<Value>>§const_value: Option<Value>§all_of: Option<Vec<Value>>§any_of: Option<Vec<Value>>§one_of: Option<Vec<Value>>§not: Option<Value>§if_schema: Option<Value>§then_schema: Option<Value>§else_schema: Option<Value>§pattern_properties: Option<Value>§property_names: Option<Value>§dependent_required: Option<Value>§dependent_schemas: Option<Value>§dependencies: Option<Value>§unevaluated_properties: Option<Value>§min_properties: Option<u64>§max_properties: Option<u64>§read_only: Option<bool>§write_only: Option<bool>§deprecated: Option<bool>§rest: RestImplementations§
Source§impl JsonSchema
impl JsonSchema
Sourcepub fn builder(type_: JsonSchemaType) -> JsonSchemaBuilder
pub fn builder(type_: JsonSchemaType) -> JsonSchemaBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for JsonSchema
impl Clone for JsonSchema
Source§impl Debug for JsonSchema
impl Debug for JsonSchema
Source§impl DeclaredFields for JsonSchema
impl DeclaredFields for JsonSchema
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for JsonSchema
impl<'de> Deserialize<'de> for JsonSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JsonSchema
Source§impl PartialEq for JsonSchema
impl PartialEq for JsonSchema
Source§impl Serialize for JsonSchema
impl Serialize for JsonSchema
impl StructuralPartialEq for JsonSchema
Auto Trait Implementations§
impl Freeze for JsonSchema
impl RefUnwindSafe for JsonSchema
impl Send for JsonSchema
impl Sync for JsonSchema
impl Unpin for JsonSchema
impl UnsafeUnpin for JsonSchema
impl UnwindSafe for JsonSchema
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