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

source§

fn clone(&self) -> JSONSchemaObject

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JSONSchemaObject

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for JSONSchemaObject

source§

fn default() -> JSONSchemaObject

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

impl<'de> Deserialize<'de> for JSONSchemaObject

source§

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

source§

fn eq(&self, other: &JSONSchemaObject) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

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

impl Serialize for JSONSchemaObject

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for JSONSchemaObject

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,