Enum jsonschema::primitive_type::PrimitiveType
source · [−]pub enum PrimitiveType {
Array,
Boolean,
Integer,
Null,
Number,
Object,
String,
}
Expand description
For faster error handling in “type” keyword validator we have this enum, to match with it instead of a string.
Variants
Array
Boolean
Integer
Null
Number
Object
String
Trait Implementations
sourceimpl BitOrAssign<PrimitiveType> for PrimitiveTypesBitMap
impl BitOrAssign<PrimitiveType> for PrimitiveTypesBitMap
sourcefn bitor_assign(&mut self, rhs: PrimitiveType)
fn bitor_assign(&mut self, rhs: PrimitiveType)
Performs the
|=
operation. Read moresourceimpl Clone for PrimitiveType
impl Clone for PrimitiveType
sourcefn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PrimitiveType
impl Debug for PrimitiveType
sourceimpl Display for PrimitiveType
impl Display for PrimitiveType
sourceimpl From<&Value> for PrimitiveType
impl From<&Value> for PrimitiveType
sourceimpl PartialEq<PrimitiveType> for PrimitiveType
impl PartialEq<PrimitiveType> for PrimitiveType
sourcefn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
sourceimpl TryFrom<&str> for PrimitiveType
impl TryFrom<&str> for PrimitiveType
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralEq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.