pub trait BindRustType<S, T> {
// Required methods
fn bind(&mut self, index: usize, value: T) -> Result<&mut Statement<S>>;
fn bind_by_name(&mut self, col: &str, value: T) -> Result<&mut Statement<S>>;
}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§
Sourcefn bind(&mut self, index: usize, value: T) -> Result<&mut Statement<S>>
fn bind(&mut self, index: usize, value: T) -> Result<&mut Statement<S>>
binds a rust type to C* by index
Sourcefn bind_by_name(&mut self, col: &str, value: T) -> Result<&mut Statement<S>>
fn bind_by_name(&mut self, col: &str, value: T) -> Result<&mut Statement<S>>
binds a rust type to C* by name