Struct json_schema::JSONSchemaObject[][src]

pub struct JSONSchemaObject {
Show 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

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 !=.

Serialize this value into the given Serde serializer. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.