#[non_exhaustive]pub struct ResultSetStats {
pub query_plan: Option<QueryPlan>,
pub query_stats: Option<Struct>,
pub row_count: Option<RowCount>,
/* private fields */
}Expand description
Additional statistics about a ResultSet or PartialResultSet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query_plan: Option<QueryPlan>QueryPlan for the query associated with this result.
query_stats: Option<Struct>Aggregated statistics from the execution of the query. Only present when the query is profiled. For example, a query could return the statistics as follows:
{
"rows_returned": "3",
"elapsed_time": "1.22 secs",
"cpu_time": "1.19 secs"
}row_count: Option<RowCount>The number of rows modified by the DML statement.
Implementations§
Source§impl ResultSetStats
impl ResultSetStats
Sourcepub fn set_query_plan<T>(self, v: T) -> Self
pub fn set_query_plan<T>(self, v: T) -> Self
Sets the value of query_plan.
Sourcepub fn set_or_clear_query_plan<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_query_plan<T>(self, v: Option<T>) -> Self
Sets or clears the value of query_plan.
Sourcepub fn set_query_stats<T>(self, v: T) -> Self
pub fn set_query_stats<T>(self, v: T) -> Self
Sets the value of query_stats.
Sourcepub fn set_or_clear_query_stats<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_query_stats<T>(self, v: Option<T>) -> Self
Sets or clears the value of query_stats.
Sourcepub fn set_row_count<T: Into<Option<RowCount>>>(self, v: T) -> Self
pub fn set_row_count<T: Into<Option<RowCount>>>(self, v: T) -> Self
Sets the value of row_count.
Note that all the setters affecting row_count are mutually
exclusive.
Sourcepub fn row_count_exact(&self) -> Option<&i64>
pub fn row_count_exact(&self) -> Option<&i64>
The value of row_count
if it holds a RowCountExact, None if the field is not set or
holds a different branch.
Sourcepub fn set_row_count_exact<T: Into<i64>>(self, v: T) -> Self
pub fn set_row_count_exact<T: Into<i64>>(self, v: T) -> Self
Sets the value of row_count
to hold a RowCountExact.
Note that all the setters affecting row_count are
mutually exclusive.
Sourcepub fn row_count_lower_bound(&self) -> Option<&i64>
pub fn row_count_lower_bound(&self) -> Option<&i64>
The value of row_count
if it holds a RowCountLowerBound, None if the field is not set or
holds a different branch.
Sourcepub fn set_row_count_lower_bound<T: Into<i64>>(self, v: T) -> Self
pub fn set_row_count_lower_bound<T: Into<i64>>(self, v: T) -> Self
Sets the value of row_count
to hold a RowCountLowerBound.
Note that all the setters affecting row_count are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ResultSetStats
impl Clone for ResultSetStats
Source§fn clone(&self) -> ResultSetStats
fn clone(&self) -> ResultSetStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResultSetStats
impl Debug for ResultSetStats
Source§impl Default for ResultSetStats
impl Default for ResultSetStats
Source§fn default() -> ResultSetStats
fn default() -> ResultSetStats
Source§impl Message for ResultSetStats
impl Message for ResultSetStats
Source§impl PartialEq for ResultSetStats
impl PartialEq for ResultSetStats
Source§fn eq(&self, other: &ResultSetStats) -> bool
fn eq(&self, other: &ResultSetStats) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResultSetStats
Auto Trait Implementations§
impl Freeze for ResultSetStats
impl RefUnwindSafe for ResultSetStats
impl Send for ResultSetStats
impl Sync for ResultSetStats
impl Unpin for ResultSetStats
impl UnsafeUnpin for ResultSetStats
impl UnwindSafe for ResultSetStats
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request