Trait skytable::response::FromValue

source ·
pub trait FromValue: Sized {
    // Required method
    fn from_value(v: Value) -> ClientResult<Self>;
}
Expand description

Any type that can be parsed from a Value. This is generally meant for use with FromResponse.

Required Methods§

source

fn from_value(v: Value) -> ClientResult<Self>

Attempt to use the value to create an instance of Self or throw an error

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromValue for bool

source§

impl FromValue for f32

source§

impl FromValue for f64

source§

impl FromValue for i8

source§

impl FromValue for i16

source§

impl FromValue for i32

source§

impl FromValue for i64

source§

impl FromValue for u8

source§

impl FromValue for u16

source§

impl FromValue for u32

source§

impl FromValue for u64

source§

impl FromValue for Box<str>

source§

impl FromValue for Box<[u8]>

source§

impl FromValue for String

source§

impl FromValue for Vec<Value>

source§

impl FromValue for Vec<u8>

source§

impl<V: FromValue> FromValue for Option<V>

Implementors§