pub enum TypeSchema {
Show 17 variants
Unknown,
Null,
Int,
Float,
Number,
Bool,
String,
Bytes,
Optional(Box<TypeSchema>),
GenericParam(String),
Named(String, Vec<TypeSchema>),
Array(Box<TypeSchema>),
ArrayTuple(Vec<TypeSchema>),
ArrayTupleRest {
prefix: Vec<TypeSchema>,
rest: Box<TypeSchema>,
},
Map(Box<TypeSchema>),
Object(HashMap<String, TypeSchema>),
Callable {
params: Vec<TypeSchema>,
result: Box<TypeSchema>,
},
}Variants§
Unknown
Null
Int
Float
Number
Bool
String
Bytes
Optional(Box<TypeSchema>)
GenericParam(String)
Named(String, Vec<TypeSchema>)
Array(Box<TypeSchema>)
ArrayTuple(Vec<TypeSchema>)
ArrayTupleRest
Map(Box<TypeSchema>)
Object(HashMap<String, TypeSchema>)
Callable
Trait Implementations§
Source§impl Clone for TypeSchema
impl Clone for TypeSchema
Source§fn clone(&self) -> TypeSchema
fn clone(&self) -> TypeSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeSchema
impl Debug for TypeSchema
impl Eq for TypeSchema
Source§impl PartialEq for TypeSchema
impl PartialEq for TypeSchema
impl StructuralPartialEq for TypeSchema
Auto Trait Implementations§
impl Freeze for TypeSchema
impl RefUnwindSafe for TypeSchema
impl Send for TypeSchema
impl Sync for TypeSchema
impl Unpin for TypeSchema
impl UnsafeUnpin for TypeSchema
impl UnwindSafe for TypeSchema
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§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.