pub enum JsonSchemaType {
String,
Integer,
Number,
Boolean,
Array,
Object,
Null,
}Expand description
JSON Schema primitive types
Variants§
Implementations§
Source§impl JsonSchemaType
impl JsonSchemaType
Sourcepub fn is_container(&self) -> bool
pub fn is_container(&self) -> bool
Check if this is a container type (array or object)
Sourcepub fn rust_type_name(&self) -> &'static str
pub fn rust_type_name(&self) -> &'static str
Get the Rust type name for this JSON Schema type
Sourcepub fn fallback_value(&self) -> Value
pub fn fallback_value(&self) -> Value
Get the default/fallback value for this type
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§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 Hash for JsonSchemaType
impl Hash for JsonSchemaType
Source§impl PartialEq for JsonSchemaType
impl PartialEq for JsonSchemaType
impl Copy 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 UnsafeUnpin 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> 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.