Trait scylla::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, V> FromCqlVal<CqlValue> for BTreeMap<K, V>

source§

fn from_cql(cql_val: CqlValue) -> Result<BTreeMap<K, V>, 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<(T1,), 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<(T1, T2), 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<(T1, T2, T3), 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 HashMap<T1, T2, T3>

source§

fn from_cql(cql_val: CqlValue) -> Result<HashMap<T1, T2, T3>, 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<(T1, T2, T3, T4), 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<(T1, T2, T3, T4, T5), 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<(T1, T2, T3, T4, T5, T6), 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<(T1, T2, T3, T4, T5, T6, T7), 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<(T1, T2, T3, T4, T5, T6, T7, T8), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), 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<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), FromCqlValError>

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

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

source§

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

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

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

source§

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

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

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

source§

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

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

impl<T, S> FromCqlVal<CqlValue> for HashSet<T, S>

source§

fn from_cql(cql_val: CqlValue) -> Result<HashSet<T, S>, 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<[u8; N], FromCqlValError>

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

Implementors§