Struct ClusterClassVariablesSchemaOpenApiv3Schema

Source
pub struct ClusterClassVariablesSchemaOpenApiv3Schema {
Show 30 fields pub additional_properties: Option<Value>, pub all_of: Option<Value>, pub any_of: Option<Value>, pub default: Option<Value>, pub description: Option<String>, pub enum: Option<Vec<Value>>, pub example: Option<Value>, pub exclusive_maximum: Option<bool>, pub exclusive_minimum: Option<bool>, pub format: Option<String>, pub items: Option<Value>, pub max_items: Option<i64>, pub max_length: Option<i64>, pub max_properties: Option<i64>, pub maximum: Option<i64>, pub min_items: Option<i64>, pub min_length: Option<i64>, pub min_properties: Option<i64>, pub minimum: Option<i64>, pub not: Option<Value>, pub one_of: Option<Value>, pub pattern: Option<String>, pub properties: Option<Value>, pub required: Option<Vec<String>>, pub type: Option<ClusterClassVariablesSchemaOpenApiv3SchemaType>, pub unique_items: Option<bool>, pub x_kubernetes_int_or_string: Option<bool>, pub x_kubernetes_preserve_unknown_fields: Option<bool>, pub x_kubernetes_validations: Option<Vec<ClusterClassVariablesSchemaOpenApiv3SchemaXKubernetesValidations>>, pub x_metadata: Option<ClusterClassVariablesSchemaOpenApiv3SchemaXMetadata>,
}
Expand description

openAPIV3Schema defines the schema of a variable via OpenAPI v3 schema. The schema is a subset of the schema used in Kubernetes CRDs.

Fields§

§additional_properties: Option<Value>

additionalProperties specifies the schema of values in a map (keys are always strings). NOTE: Can only be set if type is object. NOTE: AdditionalProperties is mutually exclusive with Properties. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§all_of: Option<Value>

allOf specifies that the variable must validate against all of the subschemas in the array. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§any_of: Option<Value>

anyOf specifies that the variable must validate against one or more of the subschemas in the array. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§default: Option<Value>

default is the default value of the variable. NOTE: Can be set for all types.

§description: Option<String>

description is a human-readable description of this variable.

§enum: Option<Vec<Value>>

enum is the list of valid values of the variable. NOTE: Can be set for all types.

§example: Option<Value>

example is an example for this variable.

§exclusive_maximum: Option<bool>

exclusiveMaximum specifies if the Maximum is exclusive. NOTE: Can only be set if type is integer or number.

§exclusive_minimum: Option<bool>

exclusiveMinimum specifies if the Minimum is exclusive. NOTE: Can only be set if type is integer or number.

§format: Option<String>

format is an OpenAPI v3 format string. Unknown formats are ignored. For a list of supported formats please see: (of the k8s.io/apiextensions-apiserver version we’re currently using) https://github.com/kubernetes/apiextensions-apiserver/blob/master/pkg/apiserver/validation/formats.go NOTE: Can only be set if type is string.

§items: Option<Value>

items specifies fields of an array. NOTE: Can only be set if type is array. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§max_items: Option<i64>

maxItems is the max length of an array variable. NOTE: Can only be set if type is array.

§max_length: Option<i64>

maxLength is the max length of a string variable. NOTE: Can only be set if type is string.

§max_properties: Option<i64>

maxProperties is the maximum amount of entries in a map or properties in an object. NOTE: Can only be set if type is object.

§maximum: Option<i64>

maximum is the maximum of an integer or number variable. If ExclusiveMaximum is false, the variable is valid if it is lower than, or equal to, the value of Maximum. If ExclusiveMaximum is true, the variable is valid if it is strictly lower than the value of Maximum. NOTE: Can only be set if type is integer or number.

§min_items: Option<i64>

minItems is the min length of an array variable. NOTE: Can only be set if type is array.

§min_length: Option<i64>

minLength is the min length of a string variable. NOTE: Can only be set if type is string.

§min_properties: Option<i64>

minProperties is the minimum amount of entries in a map or properties in an object. NOTE: Can only be set if type is object.

§minimum: Option<i64>

minimum is the minimum of an integer or number variable. If ExclusiveMinimum is false, the variable is valid if it is greater than, or equal to, the value of Minimum. If ExclusiveMinimum is true, the variable is valid if it is strictly greater than the value of Minimum. NOTE: Can only be set if type is integer or number.

§not: Option<Value>

not specifies that the variable must not validate against the subschema. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§one_of: Option<Value>

oneOf specifies that the variable must validate against exactly one of the subschemas in the array. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§pattern: Option<String>

pattern is the regex which a string variable must match. NOTE: Can only be set if type is string.

§properties: Option<Value>

properties specifies fields of an object. NOTE: Can only be set if type is object. NOTE: Properties is mutually exclusive with AdditionalProperties. NOTE: This field uses PreserveUnknownFields and Schemaless, because recursive validation is not possible.

§required: Option<Vec<String>>

required specifies which fields of an object are required. NOTE: Can only be set if type is object.

§type: Option<ClusterClassVariablesSchemaOpenApiv3SchemaType>

type is the type of the variable. Valid values are: object, array, string, integer, number or boolean.

§unique_items: Option<bool>

uniqueItems specifies if items in an array must be unique. NOTE: Can only be set if type is array.

§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 allows setting fields in a variable object which are not defined in the variable schema. This affects fields recursively, except if nested properties or additionalProperties are specified in the schema.

§x_kubernetes_validations: Option<Vec<ClusterClassVariablesSchemaOpenApiv3SchemaXKubernetesValidations>>

x-kubernetes-validations describes a list of validation rules written in the CEL expression language.

§x_metadata: Option<ClusterClassVariablesSchemaOpenApiv3SchemaXMetadata>

x-metadata is the metadata of a variable or a nested field within a variable. It can be used to add additional data for higher level tools.

Trait Implementations§

Source§

impl Clone for ClusterClassVariablesSchemaOpenApiv3Schema

Source§

fn clone(&self) -> ClusterClassVariablesSchemaOpenApiv3Schema

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ClusterClassVariablesSchemaOpenApiv3Schema

Source§

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

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

impl Default for ClusterClassVariablesSchemaOpenApiv3Schema

Source§

fn default() -> ClusterClassVariablesSchemaOpenApiv3Schema

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

impl<'de> Deserialize<'de> for ClusterClassVariablesSchemaOpenApiv3Schema

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 JsonSchema for ClusterClassVariablesSchemaOpenApiv3Schema

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for ClusterClassVariablesSchemaOpenApiv3Schema

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ClusterClassVariablesSchemaOpenApiv3Schema

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 ClusterClassVariablesSchemaOpenApiv3Schema

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

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>,

Source§

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>,

Source§

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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