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: Clone, AS: Clone, OS: Clone> Clone for DataSchemaSubtype<DS, AS, OS>
impl<DS: Clone, AS: Clone, OS: Clone> 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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<DS, AS, OS> Default for DataSchemaSubtype<DS, AS, OS>
impl<DS, AS, OS> Default for DataSchemaSubtype<DS, AS, OS>
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<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<DS: PartialEq, AS: PartialEq, OS: PartialEq> PartialEq for DataSchemaSubtype<DS, AS, OS>
impl<DS: PartialEq, AS: PartialEq, OS: PartialEq> 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>
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