Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::JSONSchemaProps[][src]

pub struct JSONSchemaProps {
Show fields pub ref_path: Option<String>, pub schema: Option<String>, pub additional_items: Option<JSONSchemaPropsOrBool>, pub additional_properties: Option<JSONSchemaPropsOrBool>, pub all_of: Option<Vec<JSONSchemaProps>>, pub any_of: Option<Vec<JSONSchemaProps>>, pub default: Option<JSON>, pub definitions: Option<BTreeMap<String, JSONSchemaProps>>, pub dependencies: Option<BTreeMap<String, JSONSchemaPropsOrStringArray>>, pub description: Option<String>, pub enum_: Option<Vec<JSON>>, pub example: Option<JSON>, pub exclusive_maximum: Option<bool>, pub exclusive_minimum: Option<bool>, pub external_docs: Option<ExternalDocumentation>, pub format: Option<String>, pub id: Option<String>, pub items: Option<JSONSchemaPropsOrArray>, pub max_items: Option<i64>, pub max_length: Option<i64>, pub max_properties: Option<i64>, pub maximum: Option<f64>, pub min_items: Option<i64>, pub min_length: Option<i64>, pub min_properties: Option<i64>, pub minimum: Option<f64>, pub multiple_of: Option<f64>, pub not: Option<Box<JSONSchemaProps>>, pub nullable: Option<bool>, pub one_of: Option<Vec<JSONSchemaProps>>, pub pattern: Option<String>, pub pattern_properties: Option<BTreeMap<String, JSONSchemaProps>>, pub properties: Option<BTreeMap<String, JSONSchemaProps>>, pub required: Option<Vec<String>>, pub title: Option<String>, pub type_: Option<String>, pub unique_items: Option<bool>,
}
Expand description

JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).

Fields

ref_path: Option<String>schema: Option<String>additional_items: Option<JSONSchemaPropsOrBool>additional_properties: Option<JSONSchemaPropsOrBool>all_of: Option<Vec<JSONSchemaProps>>any_of: Option<Vec<JSONSchemaProps>>default: Option<JSON>definitions: Option<BTreeMap<String, JSONSchemaProps>>dependencies: Option<BTreeMap<String, JSONSchemaPropsOrStringArray>>description: Option<String>enum_: Option<Vec<JSON>>example: Option<JSON>exclusive_maximum: Option<bool>exclusive_minimum: Option<bool>external_docs: Option<ExternalDocumentation>format: Option<String>id: Option<String>items: Option<JSONSchemaPropsOrArray>max_items: Option<i64>max_length: Option<i64>max_properties: Option<i64>maximum: Option<f64>min_items: Option<i64>min_length: Option<i64>min_properties: Option<i64>minimum: Option<f64>multiple_of: Option<f64>not: Option<Box<JSONSchemaProps>>nullable: Option<bool>one_of: Option<Vec<JSONSchemaProps>>pattern: Option<String>pattern_properties: Option<BTreeMap<String, JSONSchemaProps>>properties: Option<BTreeMap<String, JSONSchemaProps>>required: Option<Vec<String>>title: Option<String>type_: Option<String>unique_items: Option<bool>

Trait Implementations

impl Clone for JSONSchemaProps[src]

fn clone(&self) -> JSONSchemaProps[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for JSONSchemaProps[src]

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

Formats the value using the given formatter. Read more

impl Default for JSONSchemaProps[src]

fn default() -> JSONSchemaProps[src]

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

impl<'de> Deserialize<'de> for JSONSchemaProps[src]

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<JSONSchemaProps> for JSONSchemaProps[src]

fn eq(&self, other: &JSONSchemaProps) -> bool[src]

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

fn ne(&self, other: &JSONSchemaProps) -> bool[src]

This method tests for !=.

impl Serialize for JSONSchemaProps[src]

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl StructuralPartialEq for JSONSchemaProps[src]

Auto Trait Implementations

impl RefUnwindSafe for JSONSchemaProps

impl Send for JSONSchemaProps

impl Sync for JSONSchemaProps

impl Unpin for JSONSchemaProps

impl UnwindSafe for JSONSchemaProps

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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