Enum k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::JSONSchemaPropsOrArray
source · pub enum JSONSchemaPropsOrArray {
Schema(Box<JSONSchemaProps>),
Schemas(Vec<JSONSchemaProps>),
}
Expand description
JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.
Variants§
Schema(Box<JSONSchemaProps>)
Schemas(Vec<JSONSchemaProps>)
Trait Implementations§
source§impl Clone for JSONSchemaPropsOrArray
impl Clone for JSONSchemaPropsOrArray
source§fn clone(&self) -> JSONSchemaPropsOrArray
fn clone(&self) -> JSONSchemaPropsOrArray
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JSONSchemaPropsOrArray
impl Debug for JSONSchemaPropsOrArray
source§impl DeepMerge for JSONSchemaPropsOrArray
impl DeepMerge for JSONSchemaPropsOrArray
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl<'de> Deserialize<'de> for JSONSchemaPropsOrArray
impl<'de> Deserialize<'de> for JSONSchemaPropsOrArray
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<JSONSchemaPropsOrArray> for JSONSchemaPropsOrArray
impl PartialEq<JSONSchemaPropsOrArray> for JSONSchemaPropsOrArray
source§fn eq(&self, other: &JSONSchemaPropsOrArray) -> bool
fn eq(&self, other: &JSONSchemaPropsOrArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.