pub enum JSONSchemaPropsOrArray {
Schema(Box<JSONSchemaProps, Global>),
Schemas(Vec<JSONSchemaProps, Global>),
}
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, Global>)
Schemas(Vec<JSONSchemaProps, Global>)
Trait Implementations
sourceimpl Clone for JSONSchemaPropsOrArray
impl Clone for JSONSchemaPropsOrArray
sourcefn clone(&self) -> JSONSchemaPropsOrArray
fn clone(&self) -> JSONSchemaPropsOrArray
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for JSONSchemaPropsOrArray
impl Debug for JSONSchemaPropsOrArray
sourceimpl DeepMerge for JSONSchemaPropsOrArray
impl DeepMerge for JSONSchemaPropsOrArray
sourcefn merge_from(&mut self, other: JSONSchemaPropsOrArray)
fn merge_from(&mut self, other: JSONSchemaPropsOrArray)
Merge
other
into self
.sourceimpl<'de> Deserialize<'de> for JSONSchemaPropsOrArray
impl<'de> Deserialize<'de> for JSONSchemaPropsOrArray
sourcefn deserialize<D>(
deserializer: D
) -> Result<JSONSchemaPropsOrArray, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<JSONSchemaPropsOrArray, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<JSONSchemaPropsOrArray> for JSONSchemaPropsOrArray
impl PartialEq<JSONSchemaPropsOrArray> for JSONSchemaPropsOrArray
sourcefn eq(&self, other: &JSONSchemaPropsOrArray) -> bool
fn eq(&self, other: &JSONSchemaPropsOrArray) -> bool
sourceimpl Serialize for JSONSchemaPropsOrArray
impl Serialize for JSONSchemaPropsOrArray
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for JSONSchemaPropsOrArray
Auto Trait Implementations
impl RefUnwindSafe for JSONSchemaPropsOrArray
impl Send for JSONSchemaPropsOrArray
impl Sync for JSONSchemaPropsOrArray
impl Unpin for JSONSchemaPropsOrArray
impl UnwindSafe for JSONSchemaPropsOrArray
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more