pub struct RowCountEstimate {
pub count: u64,
pub exact: bool,
pub method: CountMethod,
pub count_time_ms: u128,
pub relative_error: Option<f64>,
}Expand description
Result of a quick row count operation.
Fields§
§count: u64The estimated or exact row count.
exact: boolWhether the count is exact or an estimate.
method: CountMethodHow the count was obtained.
count_time_ms: u128Time taken in milliseconds.
relative_error: Option<f64>Approximate 1-sigma relative standard error of the estimate, expressed
as a fraction of count (e.g. 0.02 ≈ ±2%). Populated only for
sampled estimates where a variance across sampling windows is available;
None for exact counts and when it cannot be estimated.
Trait Implementations§
Source§impl Clone for RowCountEstimate
impl Clone for RowCountEstimate
Source§fn clone(&self) -> RowCountEstimate
fn clone(&self) -> RowCountEstimate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RowCountEstimate
impl Debug for RowCountEstimate
Source§impl<'de> Deserialize<'de> for RowCountEstimate
impl<'de> Deserialize<'de> for RowCountEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RowCountEstimate
impl PartialEq for RowCountEstimate
Source§impl Serialize for RowCountEstimate
impl Serialize for RowCountEstimate
impl StructuralPartialEq for RowCountEstimate
Auto Trait Implementations§
impl Freeze for RowCountEstimate
impl RefUnwindSafe for RowCountEstimate
impl Send for RowCountEstimate
impl Sync for RowCountEstimate
impl Unpin for RowCountEstimate
impl UnsafeUnpin for RowCountEstimate
impl UnwindSafe for RowCountEstimate
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