pub enum ScalarJsonValue {
Null,
Bool(bool),
Integer(Int),
String(String),
}
Expand description
Scalar (non-compound) JSON values.
Variants§
Null
Represents a null
value.
Bool(bool)
Represents a boolean.
Integer(Int)
Represents an integer.
String(String)
Represents a string.
Implementations§
Trait Implementations§
Source§impl Clone for ScalarJsonValue
impl Clone for ScalarJsonValue
Source§fn clone(&self) -> ScalarJsonValue
fn clone(&self) -> ScalarJsonValue
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 ScalarJsonValue
impl Debug for ScalarJsonValue
Source§impl Default for ScalarJsonValue
impl Default for ScalarJsonValue
Source§fn default() -> ScalarJsonValue
fn default() -> ScalarJsonValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScalarJsonValue
impl<'de> Deserialize<'de> for ScalarJsonValue
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<&str> for ScalarJsonValue
impl From<&str> for ScalarJsonValue
Source§impl From<Int> for ScalarJsonValue
impl From<Int> for ScalarJsonValue
Source§impl From<String> for ScalarJsonValue
impl From<String> for ScalarJsonValue
Source§impl From<bool> for ScalarJsonValue
impl From<bool> for ScalarJsonValue
Source§impl PartialEq for ScalarJsonValue
impl PartialEq for ScalarJsonValue
Source§impl Serialize for ScalarJsonValue
impl Serialize for ScalarJsonValue
impl Eq for ScalarJsonValue
impl StructuralPartialEq for ScalarJsonValue
Auto Trait Implementations§
impl Freeze for ScalarJsonValue
impl RefUnwindSafe for ScalarJsonValue
impl Send for ScalarJsonValue
impl Sync for ScalarJsonValue
impl Unpin for ScalarJsonValue
impl UnwindSafe for ScalarJsonValue
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.