Struct json_schema::JSONSchemaObject
source · pub struct JSONSchemaObject {Show 45 fields
pub id: Option<Id>,
pub schema: Option<Schema>,
pub _ref: Option<Ref>,
pub comment: Option<Comment>,
pub title: Option<Title>,
pub description: Option<Description>,
pub _default: Option<Value>,
pub read_only: Option<ReadOnly>,
pub examples: Option<Examples>,
pub multiple_of: Option<MultipleOf>,
pub maximum: Option<Maximum>,
pub exclusive_maximum: Option<ExclusiveMaximum>,
pub minimum: Option<Minimum>,
pub exclusive_minimum: Option<ExclusiveMinimum>,
pub max_length: Option<NonNegativeInteger>,
pub min_length: Option<NonNegativeIntegerDefaultZero>,
pub pattern: Option<Pattern>,
pub additional_items: Option<Box<JSONSchema>>,
pub items: Option<Items>,
pub max_items: Option<NonNegativeInteger>,
pub min_items: Option<NonNegativeIntegerDefaultZero>,
pub unique_items: Option<UniqueItems>,
pub contains: Option<Box<JSONSchema>>,
pub max_properties: Option<NonNegativeInteger>,
pub min_properties: Option<NonNegativeIntegerDefaultZero>,
pub required: Option<StringArray>,
pub additional_properties: Option<Box<JSONSchema>>,
pub definitions: Option<Definitions>,
pub properties: Option<Properties>,
pub pattern_properties: Option<PatternProperties>,
pub dependencies: Option<Dependencies>,
pub property_names: Option<Box<JSONSchema>>,
pub _const: Option<Value>,
pub _enum: Option<Enum>,
pub _type: Option<Type>,
pub format: Option<Format>,
pub content_media_type: Option<ContentMediaType>,
pub content_encoding: Option<ContentEncoding>,
pub _if: Option<Box<JSONSchema>>,
pub then: Option<Box<JSONSchema>>,
pub _else: Option<Box<JSONSchema>>,
pub all_of: Option<SchemaArray>,
pub any_of: Option<SchemaArray>,
pub one_of: Option<SchemaArray>,
pub not: Option<Box<JSONSchema>>,
}
Fields§
§id: Option<Id>
§schema: Option<Schema>
§_ref: Option<Ref>
§comment: Option<Comment>
§title: Option<Title>
§description: Option<Description>
§_default: Option<Value>
§read_only: Option<ReadOnly>
§examples: Option<Examples>
§multiple_of: Option<MultipleOf>
§maximum: Option<Maximum>
§exclusive_maximum: Option<ExclusiveMaximum>
§minimum: Option<Minimum>
§exclusive_minimum: Option<ExclusiveMinimum>
§max_length: Option<NonNegativeInteger>
§min_length: Option<NonNegativeIntegerDefaultZero>
§pattern: Option<Pattern>
§additional_items: Option<Box<JSONSchema>>
§items: Option<Items>
§max_items: Option<NonNegativeInteger>
§min_items: Option<NonNegativeIntegerDefaultZero>
§unique_items: Option<UniqueItems>
§contains: Option<Box<JSONSchema>>
§max_properties: Option<NonNegativeInteger>
§min_properties: Option<NonNegativeIntegerDefaultZero>
§required: Option<StringArray>
§additional_properties: Option<Box<JSONSchema>>
§definitions: Option<Definitions>
§properties: Option<Properties>
§pattern_properties: Option<PatternProperties>
§dependencies: Option<Dependencies>
§property_names: Option<Box<JSONSchema>>
§_const: Option<Value>
§_enum: Option<Enum>
§_type: Option<Type>
§format: Option<Format>
§content_media_type: Option<ContentMediaType>
§content_encoding: Option<ContentEncoding>
§_if: Option<Box<JSONSchema>>
§then: Option<Box<JSONSchema>>
§_else: Option<Box<JSONSchema>>
§all_of: Option<SchemaArray>
§any_of: Option<SchemaArray>
§one_of: Option<SchemaArray>
§not: Option<Box<JSONSchema>>
Trait Implementations§
source§impl Clone for JSONSchemaObject
impl Clone for JSONSchemaObject
source§fn clone(&self) -> JSONSchemaObject
fn clone(&self) -> JSONSchemaObject
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 JSONSchemaObject
impl Debug for JSONSchemaObject
source§impl Default for JSONSchemaObject
impl Default for JSONSchemaObject
source§fn default() -> JSONSchemaObject
fn default() -> JSONSchemaObject
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for JSONSchemaObjectwhere
JSONSchemaObject: Default,
impl<'de> Deserialize<'de> for JSONSchemaObjectwhere
JSONSchemaObject: Default,
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
source§impl PartialEq for JSONSchemaObject
impl PartialEq for JSONSchemaObject
source§fn eq(&self, other: &JSONSchemaObject) -> bool
fn eq(&self, other: &JSONSchemaObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for JSONSchemaObject
impl Serialize for JSONSchemaObject
impl StructuralPartialEq for JSONSchemaObject
Auto Trait Implementations§
impl Freeze for JSONSchemaObject
impl RefUnwindSafe for JSONSchemaObject
impl Send for JSONSchemaObject
impl Sync for JSONSchemaObject
impl Unpin for JSONSchemaObject
impl UnwindSafe for JSONSchemaObject
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