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