Trait scylla_cql::frame::response::cql_to_rust::FromCqlVal

source ·
pub trait FromCqlVal<T>: Sized {
    // Required method
    fn from_cql(cql_val: T) -> Result<Self, FromCqlValError>;
}
👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
Expand description

This trait defines a way to convert CqlValue or Option<CqlValue> into some rust type

Required Methods§

source

fn from_cql(cql_val: T) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromCqlVal<CqlValue> for IpAddr

source§

fn from_cql(cql_val: CqlValue) -> Result<IpAddr, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for bool

source§

fn from_cql(cql_val: CqlValue) -> Result<bool, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for f32

source§

fn from_cql(cql_val: CqlValue) -> Result<f32, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for f64

source§

fn from_cql(cql_val: CqlValue) -> Result<f64, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for i8

source§

fn from_cql(cql_val: CqlValue) -> Result<i8, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for i16

source§

fn from_cql(cql_val: CqlValue) -> Result<i16, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for i32

source§

fn from_cql(cql_val: CqlValue) -> Result<i32, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for i64

source§

fn from_cql(cql_val: CqlValue) -> Result<i64, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for Uuid

source§

fn from_cql(cql_val: CqlValue) -> Result<Uuid, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for String

source§

fn from_cql(cql_val: CqlValue) -> Result<String, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl FromCqlVal<CqlValue> for Vec<u8>

source§

fn from_cql(cql_val: CqlValue) -> Result<Vec<u8>, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<K: FromCqlVal<CqlValue> + Ord, V: FromCqlVal<CqlValue>> FromCqlVal<CqlValue> for BTreeMap<K, V>

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1> FromCqlVal<CqlValue> for (T1,)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2> FromCqlVal<CqlValue> for (T1, T2)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3> FromCqlVal<CqlValue> for (T1, T2, T3)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4> FromCqlVal<CqlValue> for (T1, T2, T3, T4)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> FromCqlVal<CqlValue> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T1: FromCqlVal<CqlValue> + Eq + Hash, T2: FromCqlVal<CqlValue>, T3: BuildHasher + Default> FromCqlVal<CqlValue> for HashMap<T1, T2, T3>

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T: FromCqlVal<CqlValue> + Eq + Hash, S: BuildHasher + Default> FromCqlVal<CqlValue> for HashSet<T, S>

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T: FromCqlVal<CqlValue> + Ord> FromCqlVal<CqlValue> for BTreeSet<T>

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T: FromCqlVal<CqlValue>> FromCqlVal<CqlValue> for Vec<T>

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<T: FromCqlVal<CqlValue>> FromCqlVal<Option<CqlValue>> for Option<T>

source§

fn from_cql(cql_val_opt: Option<CqlValue>) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
source§

impl<const N: usize> FromCqlVal<CqlValue> for [u8; N]

source§

fn from_cql(cql_val: CqlValue) -> Result<Self, FromCqlValError>

👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon

Implementors§