pub enum DataSchemaSubtype<DS, AS, OS> {
Array(ArraySchema<DS, AS, OS>),
Boolean,
Number(NumberSchema),
Integer(IntegerSchema),
Object(ObjectSchema<DS, AS, OS>),
String(StringSchema),
Null,
}Expand description
A JSON-based data schema subtype.
Variants§
Array(ArraySchema<DS, AS, OS>)
A JSON array metadata.
Boolean
A boolean.
Number(NumberSchema)
A number metadata.
Integer(IntegerSchema)
An integer metadata.
Object(ObjectSchema<DS, AS, OS>)
A JSON object metadata.
String(StringSchema)
A string metadata.
Null
A JSON null.
Trait Implementations§
Source§impl<DS, AS, OS> Clone for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Clone for DataSchemaSubtype<DS, AS, OS>
Source§fn clone(&self) -> DataSchemaSubtype<DS, AS, OS>
fn clone(&self) -> DataSchemaSubtype<DS, AS, OS>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<DS, AS, OS> Debug for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Debug for DataSchemaSubtype<DS, AS, OS>
Source§impl<DS, AS, OS> Default for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Default for DataSchemaSubtype<DS, AS, OS>
Source§fn default() -> DataSchemaSubtype<DS, AS, OS>
fn default() -> DataSchemaSubtype<DS, AS, OS>
Returns the “default value” for a type. Read more
Source§impl<'de, DS, AS, OS> Deserialize<'de> for DataSchemaSubtype<DS, AS, OS>
impl<'de, DS, AS, OS> Deserialize<'de> for DataSchemaSubtype<DS, AS, OS>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataSchemaSubtype<DS, AS, OS>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataSchemaSubtype<DS, AS, OS>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<DS, AS, OS> PartialEq for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> PartialEq for DataSchemaSubtype<DS, AS, OS>
Source§fn eq(&self, other: &DataSchemaSubtype<DS, AS, OS>) -> bool
fn eq(&self, other: &DataSchemaSubtype<DS, AS, OS>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<DS, AS, OS> Serialize for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Serialize for DataSchemaSubtype<DS, AS, OS>
Source§fn 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
Source§impl<DS, AS, OS> TryFrom<UncheckedDataSchemaSubtype<DS, AS, OS>> for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> TryFrom<UncheckedDataSchemaSubtype<DS, AS, OS>> for DataSchemaSubtype<DS, AS, OS>
Source§fn try_from(
value: UncheckedDataSchemaSubtype<DS, AS, OS>,
) -> Result<DataSchemaSubtype<DS, AS, OS>, <DataSchemaSubtype<DS, AS, OS> as TryFrom<UncheckedDataSchemaSubtype<DS, AS, OS>>>::Error>
fn try_from( value: UncheckedDataSchemaSubtype<DS, AS, OS>, ) -> Result<DataSchemaSubtype<DS, AS, OS>, <DataSchemaSubtype<DS, AS, OS> as TryFrom<UncheckedDataSchemaSubtype<DS, AS, OS>>>::Error>
Performs the conversion.
impl<DS, AS, OS> StructuralPartialEq for DataSchemaSubtype<DS, AS, OS>
Auto Trait Implementations§
impl<DS, AS, OS> Freeze for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> RefUnwindSafe for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Send for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Sync for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Unpin for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> UnwindSafe for DataSchemaSubtype<DS, AS, OS>
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