pub enum JsonDatatype {
Number(JsonNumber),
String(JsonString, Option<u32>),
Boolean,
Array(Vec<String>),
Object(Value),
}
Expand description
Basic JSON datatypes, defaults to string
Variants§
Trait Implementations§
source§impl Clone for JsonDatatype
impl Clone for JsonDatatype
source§fn clone(&self) -> JsonDatatype
fn clone(&self) -> JsonDatatype
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 JsonDatatype
impl Debug for JsonDatatype
source§impl Default for JsonDatatype
impl Default for JsonDatatype
source§impl<'de> Deserialize<'de> for JsonDatatype
impl<'de> Deserialize<'de> for JsonDatatype
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<&SqlDatatype> for JsonDatatype
impl From<&SqlDatatype> for JsonDatatype
source§fn from(value: &SqlDatatype) -> Self
fn from(value: &SqlDatatype) -> Self
Converts to this type from the input type.
source§impl PartialEq for JsonDatatype
impl PartialEq for JsonDatatype
source§fn eq(&self, other: &JsonDatatype) -> bool
fn eq(&self, other: &JsonDatatype) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for JsonDatatype
impl Serialize for JsonDatatype
impl StructuralPartialEq for JsonDatatype
Auto Trait Implementations§
impl RefUnwindSafe for JsonDatatype
impl Send for JsonDatatype
impl Sync for JsonDatatype
impl Unpin for JsonDatatype
impl UnwindSafe for JsonDatatype
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