pub struct TableStats {
pub row_count: Option<u64>,
pub size_bytes: Option<u64>,
pub index_size_bytes: Option<u64>,
pub last_analyzed: Option<String>,
pub last_modified: Option<String>,
}Expand description
Optional runtime statistics for a table.
Fields§
§row_count: Option<u64>Number of rows in the table.
size_bytes: Option<u64>Size of the table in bytes (data + indexes).
index_size_bytes: Option<u64>Index size in bytes.
last_analyzed: Option<String>Last analyzed timestamp.
last_modified: Option<String>Last modified timestamp.
Implementations§
Source§impl TableStats
impl TableStats
Sourcepub fn size_bytes(self, bytes: u64) -> Self
pub fn size_bytes(self, bytes: u64) -> Self
Set the table size in bytes.
Sourcepub fn index_size_bytes(self, bytes: u64) -> Self
pub fn index_size_bytes(self, bytes: u64) -> Self
Set the index size in bytes.
Sourcepub fn last_analyzed<S: Into<String>>(self, ts: S) -> Self
pub fn last_analyzed<S: Into<String>>(self, ts: S) -> Self
Set the last analyzed timestamp.
Sourcepub fn last_modified<S: Into<String>>(self, ts: S) -> Self
pub fn last_modified<S: Into<String>>(self, ts: S) -> Self
Set the last modified timestamp.
Trait Implementations§
Source§impl Clone for TableStats
impl Clone for TableStats
Source§fn clone(&self) -> TableStats
fn clone(&self) -> TableStats
Returns a duplicate of the value. Read more
1.0.0 · 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 TableStats
impl Debug for TableStats
Source§impl Default for TableStats
impl Default for TableStats
Source§fn default() -> TableStats
fn default() -> TableStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableStats
impl RefUnwindSafe for TableStats
impl Send for TableStats
impl Sync for TableStats
impl Unpin for TableStats
impl UnsafeUnpin for TableStats
impl UnwindSafe for TableStats
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