Struct 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>

Get a particular column by index

Source

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

Get a particular column by name

Trait Implementations§

Source§

impl AsRustType<Inet> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<MapIterator> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<SetIterator> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<String> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<UserTypeIterator> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<Uuid> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<Uuid> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

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

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<bool> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<f32> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<f64> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<i16> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<i32> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<i64> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<i8> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl AsRustType<u32> for Row<'_>

Source§

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

convert while reading cassandra columns
Source§

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

convert while reading cassandra columns by name
Source§

impl<'a> Debug for Row<'a>

Source§

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

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

impl<'a> Display for Row<'a>

Source§

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

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

impl<'a> IntoIterator for &'a Row<'_>

Source§

type Item = Value

The type of the elements being iterated over.
Source§

type IntoIter = RowIterator

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl IntoIterator for Row<'_>

Source§

fn into_iter(self) -> Self::IntoIter

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

Source§

type Item = Value

The type of the elements being iterated over.
Source§

type IntoIter = RowIterator

Which kind of iterator are we turning this into?
Source§

impl<'a> Send for Row<'a>

Source§

impl<'a> Sync for Row<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Row<'a>

§

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§

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>,

Source§

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>,

Source§

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,