Struct cassandra_cpp::Row[][src]

pub struct Row<'a>(_, _);
Expand description

A collection of column values. Read-only, so thread-safe.

Implementations

impl<'a> Row<'a>[src]

pub fn get_column(&self, index: usize) -> Result<Value>[src]

Get a particular column by index

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

Get a particular column by name

Trait Implementations

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

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

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

convert while reading cassandra columns

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

convert while reading cassandra columns by name

impl<'a> Debug for Row<'a>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a> Display for Row<'a>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl IntoIterator for Row<'_>[src]

fn into_iter(self) -> Self::IntoIter[src]

Creates a new iterator for the specified row. This can be used to iterate over columns in a row.

type Item = Value

The type of the elements being iterated over.

type IntoIter = RowIterator

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a Row<'_>[src]

type Item = Value

The type of the elements being iterated over.

type IntoIter = RowIterator

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a> Send for Row<'a>[src]

impl<'a> Sync for Row<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Row<'a>

impl<'a> Unpin for Row<'a>

impl<'a> UnwindSafe for Row<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]