pub struct CompletedStatement {
pub statement_handle: StatementHandle,
pub result_set: ResultSet,
pub rows: Vec<Vec<Option<String>>>,
pub fetched_partitions: u32,
pub total_partitions: u32,
}Expand description
The fully-assembled result of a completed statement: the parsed terminal
ResultSet (metadata + inline partition-0 rows) plus every row across all
fetched partitions, concatenated in partition order.
Fields§
§statement_handle: StatementHandleThe statement handle (also the re-fetch / cancel id).
result_set: ResultSetThe terminal 200 result set, including column metadata.
rows: Vec<Vec<Option<String>>>All rows across every fetched partition (data ++ each fetched partition).
fetched_partitions: u32Partitions whose rows are in rows, counting the inline partition 0.
total_partitions: u32Partitions the result set has in total (partitionInfo length, min 1).
Implementations§
Source§impl CompletedStatement
impl CompletedStatement
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
true when a row cap stopped the fetch before every partition was
downloaded: rows is a prefix and result_set still carries the
server-side numRows.
Trait Implementations§
Source§impl Clone for CompletedStatement
impl Clone for CompletedStatement
Source§impl Debug for CompletedStatement
impl Debug for CompletedStatement
Source§impl PartialEq for CompletedStatement
impl PartialEq for CompletedStatement
impl StructuralPartialEq for CompletedStatement
Auto Trait Implementations§
impl Freeze for CompletedStatement
impl RefUnwindSafe for CompletedStatement
impl Send for CompletedStatement
impl Sync for CompletedStatement
impl Unpin for CompletedStatement
impl UnsafeUnpin for CompletedStatement
impl UnwindSafe for CompletedStatement
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).