pub enum SingleValue {
String(String),
Bool(bool),
Unsigned(u64),
Signed(i64),
Float(f64),
}
Variants§
Trait Implementations§
source§impl Clone for SingleValue
impl Clone for SingleValue
source§fn clone(&self) -> SingleValue
fn clone(&self) -> SingleValue
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 SingleValue
impl Debug for SingleValue
source§impl<'de> Deserialize<'de> for SingleValue
impl<'de> Deserialize<'de> for SingleValue
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 Display for SingleValue
impl Display for SingleValue
source§impl PartialEq for SingleValue
impl PartialEq for SingleValue
source§fn eq(&self, other: &SingleValue) -> bool
fn eq(&self, other: &SingleValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SingleValue
impl PartialOrd for SingleValue
source§fn partial_cmp(&self, other: &SingleValue) -> Option<Ordering>
fn partial_cmp(&self, other: &SingleValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SingleValue
impl Serialize for SingleValue
impl StructuralPartialEq for SingleValue
Auto Trait Implementations§
impl Freeze for SingleValue
impl RefUnwindSafe for SingleValue
impl Send for SingleValue
impl Sync for SingleValue
impl Unpin for SingleValue
impl UnwindSafe for SingleValue
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