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 for JSONSchemaPropsOrArray
impl PartialEq 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 ==
.source§impl Serialize for JSONSchemaPropsOrArray
impl Serialize for JSONSchemaPropsOrArray
impl StructuralPartialEq for JSONSchemaPropsOrArray
Auto Trait Implementations§
impl Freeze for JSONSchemaPropsOrArray
impl RefUnwindSafe for JSONSchemaPropsOrArray
impl Send for JSONSchemaPropsOrArray
impl Sync for JSONSchemaPropsOrArray
impl Unpin for JSONSchemaPropsOrArray
impl UnwindSafe for JSONSchemaPropsOrArray
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
Mutably borrows from an owned value. Read more