Trait scylla_rs::cql::Values[][src]

pub trait Values: Sized {
    type Return: Values<Return = Self::Return>;
    fn value<V: ColumnEncoder>(self, value: &V) -> Self::Return;
fn unset_value(self) -> Self::Return;
fn null_value(self) -> Self::Return; }

Defines shared functionality for frames that can receive statement values

Associated Types

type Return: Values<Return = Self::Return>[src]

The return type after applying a value

Loading content...

Required methods

fn value<V: ColumnEncoder>(self, value: &V) -> Self::Return[src]

Value of type V.

fn unset_value(self) -> Self::Return[src]

Unset value.

fn null_value(self) -> Self::Return[src]

Set Null value, note: for write queries this will create tombstone for V;

Loading content...

Implementors

impl Values for QueryBuilder<QueryFlags>[src]

type Return = QueryBuilder<QueryValues>

fn null_value(self) -> QueryBuilder<QueryValues>[src]

Set the first value to be null in the query frame.

fn unset_value(self) -> QueryBuilder<QueryValues>[src]

Set the value to be unset in the query frame.

fn value<V: ColumnEncoder>(self, value: &V) -> QueryBuilder<QueryValues>[src]

Set the first value in the query frame.

impl Values for QueryBuilder<QueryValues>[src]

type Return = QueryBuilder<QueryValues>

fn value<V: ColumnEncoder>(self, value: &V) -> Self[src]

Set the next value in the query frame.

fn unset_value(self) -> Self[src]

Set the value to be unset in the query frame.

fn null_value(self) -> Self[src]

Set the value to be null in the query frame.

impl<Type: Copy + Into<u8>> Values for BatchBuilder<Type, BatchValues>[src]

type Return = BatchBuilder<Type, BatchValues>

fn value<V: ColumnEncoder>(self, value: &V) -> Self[src]

Set the value in the Batch frame.

fn unset_value(self) -> Self[src]

Set the value to be unset in the Batch frame.

fn null_value(self) -> Self[src]

Set the value to be null in the Batch frame.

Loading content...