pub enum Value {
}
Expand description
The value directly returned by the server without any additional type parsing and/or casting
Variants§
Null
A null value
Bool(bool)
A bool
UInt8(u8)
An u8
UInt16(u16)
An u16
UInt32(u32)
An u32
UInt64(u64)
An u64
SInt8(i8)
An i8
SInt16(i16)
An i16
SInt32(i32)
An i32
SInt64(i64)
An i64
Float32(f32)
A f32
Float64(f64)
A f64
Binary(Vec<u8>)
A Vec<u8>
String(String)
A String
List(Vec<Self>)
A nested list
Implementations§
source§impl Value
impl Value
sourcepub fn parse<T: FromValue>(self) -> ClientResult<T>
pub fn parse<T: FromValue>(self) -> ClientResult<T>
Attempt to parse this value into a different type
sourcepub fn parse_cloned<T: FromValue>(&self) -> ClientResult<T>
pub fn parse_cloned<T: FromValue>(&self) -> ClientResult<T>
Attempt to parse this value into a different type, by cloning the value first
Trait Implementations§
source§impl FromValue for Value
impl FromValue for Value
source§fn from_value(v: Value) -> ClientResult<Self>
fn from_value(v: Value) -> ClientResult<Self>
Attempt to use the value to create an instance of
Self
or throw an errorsource§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
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