[][src]Struct cassandra_cpp::CassResult

pub struct CassResult(_);

The result of a query. A result object is read-only and is thread-safe to read or iterate over concurrently, since we do not bind any setters (e.g., set_metadata).

Methods

impl CassResult
[src]

pub fn row_count(&self) -> u64
[src]

Gets the number of rows for the specified result.

pub fn column_count(&self) -> u64
[src]

Gets the number of columns per row for the specified result.

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

Gets the column name at index for the specified result.

pub fn column_type(&self, index: usize) -> ValueType
[src]

Gets the column type at index for the specified result.

pub fn column_data_type(&self, index: usize) -> ConstDataType
[src]

Gets the column datatype at index for the specified result.

pub fn first_row(&self) -> Option<Row>
[src]

Gets the first row of the result.

pub fn has_more_pages(&self) -> bool
[src]

Returns true if there are more pages.

pub fn set_paging_state_token(
    &mut self,
    paging_state: &str
) -> Result<&mut Self>
[src]

Sets the statement's paging state. This can be used to get the next page of data in a multi-page query.

Warning: The paging state should not be exposed to or come from untrusted environments. The paging state could be spoofed and potentially

pub fn iter(&self) -> ResultIterator
[src]

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

Trait Implementations

impl<'a> IntoIterator for &'a CassResult
[src]

type Item = Row

The type of the elements being iterated over.

type IntoIter = ResultIterator<'a>

Which kind of iterator are we turning this into?

impl Drop for CassResult
[src]

impl Send for CassResult
[src]

impl Sync for CassResult
[src]

impl Debug for CassResult
[src]

impl Display for CassResult
[src]

Blanket Implementations

impl<T> From for T
[src]

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

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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