scylla_cql::frame::response::cql_to_rust

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§