Trait cassandra_cpp::AsRustType[][src]

pub trait AsRustType<T> {
    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 c* to rust

Required methods

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

Expand description

convert while reading cassandra columns

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

Expand description

convert while reading cassandra columns by name

Implementors

impl AsRustType<bool> for Row<'_>[src]

fn get(&self, index: usize) -> Result<bool>[src]

fn get_by_name<S>(&self, name: S) -> Result<bool> where
    S: Into<String>, 
[src]

impl AsRustType<f32> for Row<'_>[src]

fn get(&self, index: usize) -> Result<f32>[src]

fn get_by_name<S>(&self, name: S) -> Result<f32> where
    S: Into<String>, 
[src]

impl AsRustType<f64> for Row<'_>[src]

fn get(&self, index: usize) -> Result<f64>[src]

fn get_by_name<S>(&self, name: S) -> Result<f64> where
    S: Into<String>, 
[src]

impl AsRustType<i8> for Row<'_>[src]

fn get(&self, index: usize) -> Result<i8>[src]

fn get_by_name<S>(&self, name: S) -> Result<i8> where
    S: Into<String>, 
[src]

impl AsRustType<i16> for Row<'_>[src]

fn get(&self, index: usize) -> Result<i16>[src]

fn get_by_name<S>(&self, name: S) -> Result<i16> where
    S: Into<String>, 
[src]

impl AsRustType<i32> for Row<'_>[src]

fn get(&self, index: usize) -> Result<i32>[src]

fn get_by_name<S>(&self, name: S) -> Result<i32> where
    S: Into<String>, 
[src]

impl AsRustType<i64> for Row<'_>[src]

fn get(&self, index: usize) -> Result<i64>[src]

fn get_by_name<S>(&self, name: S) -> Result<i64> where
    S: Into<String>, 
[src]

impl AsRustType<u32> for Row<'_>[src]

fn get(&self, index: usize) -> Result<u32>[src]

fn get_by_name<S>(&self, name: S) -> Result<u32> where
    S: Into<String>, 
[src]

impl AsRustType<String> for Row<'_>[src]

fn get(&self, index: usize) -> Result<String>[src]

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

impl AsRustType<Vec<u8, Global>> for Row<'_>[src]

fn get(&self, index: usize) -> Result<Vec<u8>>[src]

fn get_by_name<S>(&self, name: S) -> Result<Vec<u8>> where
    S: Into<String>, 
[src]

impl AsRustType<Uuid> for Row<'_>[src]

fn get(&self, index: usize) -> Result<Uuid>[src]

fn get_by_name<S>(&self, name: S) -> Result<Uuid> where
    S: Into<String>, 
[src]

impl AsRustType<Inet> for Row<'_>[src]

fn get(&self, index: usize) -> Result<Inet>[src]

fn get_by_name<S>(&self, name: S) -> Result<Inet> where
    S: Into<String>, 
[src]

impl AsRustType<MapIterator> for Row<'_>[src]

fn get(&self, index: usize) -> Result<MapIterator>[src]

fn get_by_name<S>(&self, name: S) -> Result<MapIterator> where
    S: Into<String>, 
[src]

impl AsRustType<SetIterator> for Row<'_>[src]

fn get(&self, index: usize) -> Result<SetIterator>[src]

fn get_by_name<S>(&self, name: S) -> Result<SetIterator> where
    S: Into<String>, 
[src]

impl AsRustType<UserTypeIterator> for Row<'_>[src]

fn get(&self, index: usize) -> Result<UserTypeIterator>[src]

fn get_by_name<S>(&self, name: S) -> Result<UserTypeIterator> where
    S: Into<String>, 
[src]

impl AsRustType<Uuid> for Row<'_>[src]

fn get(&self, index: usize) -> Result<Uuid>[src]

fn get_by_name<S>(&self, name: S) -> Result<Uuid> where
    S: Into<String>, 
[src]