Struct cassandra_cpp::Row

source ·
pub struct Row<'a>(/* private fields */);
Expand description

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

Implementations§

source§

impl<'a> Row<'a>

source

pub fn get_column(&self, index: usize) -> Result<Value<'a>>

Get a particular column by index

source

pub fn get_column_by_name<S>(&self, name: S) -> Result<Value<'a>>
where S: Into<String>,

Get a particular column by name

source

pub fn iter(&'a self) -> RowIterator<'a>

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

Trait Implementations§

source§

impl AsRustType<BigDecimal> for Row<'_>

source§

fn get(&self, index: usize) -> Result<BigDecimal>

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<Inet> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl<'a> AsRustType<MapIterator<'a>> for Row<'a>

source§

fn get(&self, index: usize) -> Result<MapIterator<'a>>

Convert Cassandra column by index.
source§

fn get_by_name<S>(&self, name: S) -> Result<MapIterator<'a>>
where S: Into<String>,

Convert Cassandra column by name.
source§

impl<'a> AsRustType<SetIterator<'a>> for Row<'a>

source§

fn get(&self, index: usize) -> Result<SetIterator<'a>>

Convert Cassandra column by index.
source§

fn get_by_name<S>(&self, name: S) -> Result<SetIterator<'a>>
where S: Into<String>,

Convert Cassandra column by name.
source§

impl AsRustType<String> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl<'a> AsRustType<UserTypeIterator<'a>> for Row<'a>

source§

fn get(&self, index: usize) -> Result<UserTypeIterator<'a>>

Convert Cassandra column by index.
source§

fn get_by_name<S>(&self, name: S) -> Result<UserTypeIterator<'a>>
where S: Into<String>,

Convert Cassandra column by name.
source§

impl AsRustType<Uuid> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<Uuid> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<Vec<u8>> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<bool> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<f32> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<f64> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<i16> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<i32> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<i64> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<i8> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl AsRustType<u32> for Row<'_>

source§

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

Convert Cassandra column by index.
source§

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

Convert Cassandra column by name.
source§

impl Debug for Row<'_>

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for Row<'_>

source§

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

Formats the value using the given formatter. Read more
source§

impl Send for Row<'_>

source§

impl Sync for Row<'_>

Auto Trait Implementations§

§

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

§

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

§

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

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,