pub enum JSONSchemaPropsOrStringArray {
Schema(Box<JSONSchemaProps, Global>),
Strings(Vec<String, Global>),
}
Expand description
JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.
Variants
Schema(Box<JSONSchemaProps, Global>)
Strings(Vec<String, Global>)
Trait Implementations
sourceimpl Clone for JSONSchemaPropsOrStringArray
impl Clone for JSONSchemaPropsOrStringArray
sourcefn clone(&self) -> JSONSchemaPropsOrStringArray
fn clone(&self) -> JSONSchemaPropsOrStringArray
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 JSONSchemaPropsOrStringArray
impl Debug for JSONSchemaPropsOrStringArray
sourceimpl DeepMerge for JSONSchemaPropsOrStringArray
impl DeepMerge for JSONSchemaPropsOrStringArray
sourcefn merge_from(&mut self, other: JSONSchemaPropsOrStringArray)
fn merge_from(&mut self, other: JSONSchemaPropsOrStringArray)
Merge
other
into self
.sourceimpl<'de> Deserialize<'de> for JSONSchemaPropsOrStringArray
impl<'de> Deserialize<'de> for JSONSchemaPropsOrStringArray
sourcefn deserialize<D>(
deserializer: D
) -> Result<JSONSchemaPropsOrStringArray, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<JSONSchemaPropsOrStringArray, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<JSONSchemaPropsOrStringArray> for JSONSchemaPropsOrStringArray
impl PartialEq<JSONSchemaPropsOrStringArray> for JSONSchemaPropsOrStringArray
sourcefn eq(&self, other: &JSONSchemaPropsOrStringArray) -> bool
fn eq(&self, other: &JSONSchemaPropsOrStringArray) -> bool
sourceimpl Serialize for JSONSchemaPropsOrStringArray
impl Serialize for JSONSchemaPropsOrStringArray
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 JSONSchemaPropsOrStringArray
Auto Trait Implementations
impl RefUnwindSafe for JSONSchemaPropsOrStringArray
impl Send for JSONSchemaPropsOrStringArray
impl Sync for JSONSchemaPropsOrStringArray
impl Unpin for JSONSchemaPropsOrStringArray
impl UnwindSafe for JSONSchemaPropsOrStringArray
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