pub enum Value {
}Variants§
I64(i64)
I32(i32)
I16(i16)
I8(i8)
U64(u64)
U32(u32)
U16(u16)
U8(u8)
F64(f64)
String(String)
Bytes(Vec<u8>)
Bool(bool)
Object(HashMap<String, Value>)
Seq(Vec<Value>)
Implementations§
Source§impl Value
impl Value
pub fn get(&self, key: &str) -> Option<&Value>
pub fn get_mut(&mut self, key: &str) -> Option<&mut Value>
pub fn get_value_type_as_unexpected(&self) -> Unexpected<'_>
pub fn get_i64(&self) -> Option<&i64>
pub fn get_i32(&self) -> Option<&i32>
pub fn get_i16(&self) -> Option<&i16>
pub fn get_i8(&self) -> Option<&i8>
pub fn get_u64(&self) -> Option<&u64>
pub fn get_u32(&self) -> Option<&u32>
pub fn get_u16(&self) -> Option<&u16>
pub fn get_u8(&self) -> Option<&u8>
pub fn get_f64(&self) -> Option<&f64>
pub fn get_string(&self) -> Option<&String>
pub fn get_bytes(&self) -> Option<&Vec<u8>>
pub fn get_bool(&self) -> Option<&bool>
pub fn get_raw_hashmap(&self) -> Option<&HashMap<String, Value>>
pub fn get_seq(&self) -> Option<&Vec<Value>>
pub fn is_i64(&self) -> bool
pub fn is_i32(&self) -> bool
pub fn is_i16(&self) -> bool
pub fn is_i8(&self) -> bool
pub fn is_u64(&self) -> bool
pub fn is_u32(&self) -> bool
pub fn is_u16(&self) -> bool
pub fn is_u8(&self) -> bool
pub fn is_f64(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_bytes(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_object(&self) -> bool
pub fn is_seq(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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