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 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 more