pub enum Schema {
Primitive(Primitive),
Dict(Dict),
List(List),
Set(Set),
FrozenSet(FrozenSet),
Tuple(Tuple),
Class(Class),
Enum(Enum),
Optional(Optional),
Union(Union),
Any(Any),
}Variants§
Primitive(Primitive)
Dict(Dict)
List(List)
Set(Set)
FrozenSet(FrozenSet)
Tuple(Tuple)
Class(Class)
Enum(Enum)
Optional(Optional)
Union(Union)
Any(Any)
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn new_primitive(f0: Primitive) -> Self
pub fn new_primitive(f0: Primitive) -> Self
Constructs a new Schema::Primitive.
Trait Implementations§
Source§impl<'a, 'de> DeserializeSeed<'de> for &'a Schema
impl<'a, 'de> DeserializeSeed<'de> for &'a Schema
impl Eq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl !Send for Schema
impl !Sync for Schema
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.