pub enum JsonSchemaType {
String,
Number,
Integer,
Object,
Array,
Boolean,
Null,
}
Expand description
All primitive types defined in JSON schema.
Variants§
Trait Implementations§
Source§impl Clone for JsonSchemaType
impl Clone for JsonSchemaType
Source§fn clone(&self) -> JsonSchemaType
fn clone(&self) -> JsonSchemaType
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 Debug for JsonSchemaType
impl Debug for JsonSchemaType
Source§impl From<InstanceType> for JsonSchemaType
impl From<InstanceType> for JsonSchemaType
Source§fn from(t: InstanceType) -> Self
fn from(t: InstanceType) -> Self
Converts to this type from the input type.
Source§impl From<JsonSchemaType> for InstanceType
impl From<JsonSchemaType> for InstanceType
Source§fn from(t: JsonSchemaType) -> Self
fn from(t: JsonSchemaType) -> Self
Converts to this type from the input type.
Source§impl Ord for JsonSchemaType
impl Ord for JsonSchemaType
Source§fn cmp(&self, other: &JsonSchemaType) -> Ordering
fn cmp(&self, other: &JsonSchemaType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JsonSchemaType
impl PartialEq for JsonSchemaType
Source§impl PartialOrd for JsonSchemaType
impl PartialOrd for JsonSchemaType
Source§impl Serialize for JsonSchemaType
impl Serialize for JsonSchemaType
impl Eq for JsonSchemaType
impl StructuralPartialEq for JsonSchemaType
Auto Trait Implementations§
impl Freeze for JsonSchemaType
impl RefUnwindSafe for JsonSchemaType
impl Send for JsonSchemaType
impl Sync for JsonSchemaType
impl Unpin for JsonSchemaType
impl UnwindSafe for JsonSchemaType
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.