Enum json_schema_diff::JsonSchemaType
source · 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 copy 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 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<JsonSchemaType> for JsonSchemaType
impl PartialEq<JsonSchemaType> for JsonSchemaType
source§fn eq(&self, other: &JsonSchemaType) -> bool
fn eq(&self, other: &JsonSchemaType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JsonSchemaType> for JsonSchemaType
impl PartialOrd<JsonSchemaType> for JsonSchemaType
source§fn partial_cmp(&self, other: &JsonSchemaType) -> Option<Ordering>
fn partial_cmp(&self, other: &JsonSchemaType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for JsonSchemaType
impl Serialize for JsonSchemaType
impl Eq for JsonSchemaType
impl StructuralEq for JsonSchemaType
impl StructuralPartialEq for JsonSchemaType
Auto Trait Implementations§
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