Trait AsRustType

Source
pub trait AsRustType<T> {
    // Required methods
    fn get(&self, index: usize) -> Result<T>;
    fn get_by_name<S>(&self, name: S) -> Result<T>
       where S: Into<String>;
}
Expand description

Auto inferencing conversion from Cassandra to Rust.

Required Methods§

Source

fn get(&self, index: usize) -> Result<T>

Convert Cassandra column by index.

Source

fn get_by_name<S>(&self, name: S) -> Result<T>
where S: Into<String>,

Convert Cassandra column by name.

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.

Implementors§