pub enum SimpleJsonSchemaType {
String,
Number,
Integer,
Object,
Array,
Boolean,
Null,
}
Expand description
All primitive types defined in JSON schema.
Variants§
Trait Implementations§
source§impl Clone for SimpleJsonSchemaType
impl Clone for SimpleJsonSchemaType
source§fn clone(&self) -> SimpleJsonSchemaType
fn clone(&self) -> SimpleJsonSchemaType
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 SimpleJsonSchemaType
impl Debug for SimpleJsonSchemaType
source§impl<'de> Deserialize<'de> for SimpleJsonSchemaType
impl<'de> Deserialize<'de> for SimpleJsonSchemaType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&Value> for SimpleJsonSchemaType
impl From<&Value> for SimpleJsonSchemaType
source§fn from(val: &Value) -> SimpleJsonSchemaType
fn from(val: &Value) -> SimpleJsonSchemaType
Converts to this type from the input type.
source§impl Ord for SimpleJsonSchemaType
impl Ord for SimpleJsonSchemaType
source§fn cmp(&self, other: &SimpleJsonSchemaType) -> Ordering
fn cmp(&self, other: &SimpleJsonSchemaType) -> 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<SimpleJsonSchemaType> for SimpleJsonSchemaType
impl PartialEq<SimpleJsonSchemaType> for SimpleJsonSchemaType
source§fn eq(&self, other: &SimpleJsonSchemaType) -> bool
fn eq(&self, other: &SimpleJsonSchemaType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SimpleJsonSchemaType> for SimpleJsonSchemaType
impl PartialOrd<SimpleJsonSchemaType> for SimpleJsonSchemaType
source§fn partial_cmp(&self, other: &SimpleJsonSchemaType) -> Option<Ordering>
fn partial_cmp(&self, other: &SimpleJsonSchemaType) -> 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