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§
Trait Implementations§
Source§impl BitOrAssign<PrimitiveType> for PrimitiveTypesBitMap
impl BitOrAssign<PrimitiveType> for PrimitiveTypesBitMap
Source§fn bitor_assign(&mut self, rhs: PrimitiveType)
fn bitor_assign(&mut self, rhs: PrimitiveType)
Performs the
|=
operation. Read moreSource§impl Clone for PrimitiveType
impl Clone for PrimitiveType
Source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
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 PrimitiveType
impl Debug for PrimitiveType
Source§impl Display for PrimitiveType
impl Display for PrimitiveType
Source§impl From<&Value> for PrimitiveType
impl From<&Value> for PrimitiveType
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
Source§impl TryFrom<&str> for PrimitiveType
impl TryFrom<&str> for PrimitiveType
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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