pub struct CassResult(/* private fields */);
Expand description
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
).
Implementations§
Source§impl CassResult
impl CassResult
Sourcepub fn column_count(&self) -> u64
pub fn column_count(&self) -> u64
Gets the number of columns per row for the specified result.
Sourcepub fn column_name(&self, index: usize) -> Result<&str>
pub fn column_name(&self, index: usize) -> Result<&str>
Gets the column name at index for the specified result.
Sourcepub fn column_type(&self, index: usize) -> ValueType
pub fn column_type(&self, index: usize) -> ValueType
Gets the column type at index for the specified result.
Sourcepub fn column_data_type(&self, index: usize) -> ConstDataType<'_>
pub fn column_data_type(&self, index: usize) -> ConstDataType<'_>
Gets the column datatype at index for the specified result.
Sourcepub fn has_more_pages(&self) -> bool
pub fn has_more_pages(&self) -> bool
Returns true if there are more pages.
Sourcepub fn paging_state_token(&self) -> Result<Option<Vec<u8>>>
pub fn paging_state_token(&self) -> Result<Option<Vec<u8>>>
Gets the statement’s paging state. This can be used to get the next page of
data in a multi-page query, by using set_paging_state_token
.
Returns:
Ok(None)
if there are no more pages, and thus no paging state token.Ok(Some(Vec<u8>))
if there are more pages, and a paging state token.Err(_)
if there was an error getting the paging state token.
Trait Implementations§
Source§impl Debug for CassResult
impl Debug for CassResult
Source§impl Display for CassResult
impl Display for CassResult
Source§impl Drop for CassResult
impl Drop for CassResult
impl Send for CassResult
impl Sync for CassResult
Auto Trait Implementations§
impl Freeze for CassResult
impl RefUnwindSafe for CassResult
impl Unpin for CassResult
impl UnwindSafe for CassResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more