Trait cassandra_cpp::BindRustType[][src]

pub trait BindRustType<T> {
    fn bind(&mut self, index: usize, value: T) -> Result<&mut Statement>;
fn bind_by_name(&mut self, col: &str, value: T) -> Result<&mut Statement>; }
Expand description

All Rust types that can be bound to a cassandra statement //FIXME not yet implemented Any rust type that can have a default bind implementation

Required methods

fn bind(&mut self, index: usize, value: T) -> Result<&mut Statement>[src]

Expand description

binds a rust type to C* by index

fn bind_by_name(&mut self, col: &str, value: T) -> Result<&mut Statement>[src]

Expand description

binds a rust type to C* by name

Implementors

impl BindRustType<&'_ UserType> for Statement[src]

fn bind(&mut self, index: usize, value: &UserType) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: &UserType) -> Result<&mut Self>[src]

impl BindRustType<bool> for Statement[src]

fn bind(&mut self, index: usize, value: bool) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: bool) -> Result<&mut Self>[src]

impl BindRustType<f32> for Statement[src]

fn bind(&mut self, index: usize, value: f32) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: f32) -> Result<&mut Self>[src]

impl BindRustType<f64> for Statement[src]

fn bind(&mut self, index: usize, value: f64) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: f64) -> Result<&mut Self>[src]

impl BindRustType<i8> for Statement[src]

fn bind(&mut self, index: usize, value: i8) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: i8) -> Result<&mut Self>[src]

impl BindRustType<i16> for Statement[src]

fn bind(&mut self, index: usize, value: i16) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: i16) -> Result<&mut Self>[src]

impl BindRustType<i32> for Statement[src]

fn bind(&mut self, index: usize, value: i32) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: i32) -> Result<&mut Self>[src]

impl BindRustType<i64> for Statement[src]

fn bind(&mut self, index: usize, value: i64) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: i64) -> Result<&mut Self>[src]

impl BindRustType<u32> for Statement[src]

fn bind(&mut self, index: usize, value: u32) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: u32) -> Result<&mut Self>[src]

impl BindRustType<Vec<u8, Global>> for Statement[src]

fn bind(&mut self, index: usize, value: Vec<u8>) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Vec<u8>) -> Result<&mut Self>[src]

impl BindRustType<Uuid> for Statement[src]

fn bind(&mut self, index: usize, value: Uuid) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Uuid) -> Result<&mut Self>[src]

impl BindRustType<Inet> for Statement[src]

fn bind(&mut self, index: usize, value: Inet) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Inet) -> Result<&mut Self>[src]

impl BindRustType<List> for Statement[src]

fn bind(&mut self, index: usize, value: List) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: List) -> Result<&mut Self>[src]

impl BindRustType<Map> for Statement[src]

fn bind(&mut self, index: usize, value: Map) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Map) -> Result<&mut Self>[src]

impl BindRustType<Set> for Statement[src]

fn bind(&mut self, index: usize, value: Set) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Set) -> Result<&mut Self>[src]

impl BindRustType<Tuple> for Statement[src]

fn bind(&mut self, index: usize, value: Tuple) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Tuple) -> Result<&mut Self>[src]

impl BindRustType<Uuid> for Statement[src]

fn bind(&mut self, index: usize, value: Uuid) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: Uuid) -> Result<&mut Self>[src]

impl<'a> BindRustType<&'a str> for Statement[src]

fn bind(&mut self, index: usize, value: &str) -> Result<&mut Self>[src]

fn bind_by_name(&mut self, col: &str, value: &str) -> Result<&mut Self>[src]