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

pub struct JSONSchemaProps {
    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>,
    pub x_kubernetes_embedded_resource: Option<bool>,
    pub x_kubernetes_int_or_string: Option<bool>,
    pub x_kubernetes_preserve_unknown_fields: Option<bool>,
}

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>

default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.

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>x_kubernetes_embedded_resource: Option<bool>

x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).

x_kubernetes_int_or_string: Option<bool>

x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:

  1. anyOf:
    • type: integer
    • type: string
  2. allOf:
    • anyOf:
      • type: integer
      • type: string
    • ... zero or more
x_kubernetes_preserve_unknown_fields: Option<bool>

x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.

Trait Implementations

impl Default for JSONSchemaProps[src]

impl Clone for JSONSchemaProps[src]

impl PartialEq<JSONSchemaProps> for JSONSchemaProps[src]

impl Debug for JSONSchemaProps[src]

impl Serialize for JSONSchemaProps[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.

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

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

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

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