pub struct ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema {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<ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3SchemaType>,
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<ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3SchemaXKubernetesValidations>>,
pub x_metadata: Option<ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3SchemaXMetadata>,
}
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<ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3SchemaType>
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:
- anyOf:
- type: integer
- type: string
- allOf:
- anyOf:
- type: integer
- type: string
- … zero or more
- anyOf:
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<ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3SchemaXKubernetesValidations>>
x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
x_metadata: Option<ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3SchemaXMetadata>
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 ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl Clone for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Source§fn clone(&self) -> ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
fn clone(&self) -> ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl Default for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Source§fn default() -> ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
fn default() -> ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Source§impl<'de> Deserialize<'de> for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl<'de> Deserialize<'de> for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl JsonSchema for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl PartialEq for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Source§fn eq(
&self,
other: &ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema,
) -> bool
fn eq( &self, other: &ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema, ) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Auto Trait Implementations§
impl Freeze for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl RefUnwindSafe for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl Send for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl Sync for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl Unpin for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
impl UnwindSafe for ClusterClassStatusVariablesDefinitionsSchemaOpenApiv3Schema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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