pub struct TableStats {
pub schema: String,
pub table_name: String,
pub total_size_bytes: i64,
pub table_size_bytes: i64,
pub index_size_bytes: i64,
pub row_count: i64,
pub seq_scans: i64,
pub index_scans: i64,
pub live_tuples: i64,
pub dead_tuples: i64,
pub last_vacuum: Option<DateTime<Utc>>,
pub last_analyze: Option<DateTime<Utc>>,
}Expand description
Comprehensive table statistics
Fields§
§schema: StringSchema name
table_name: StringTable name
total_size_bytes: i64Total table size including indexes (bytes)
table_size_bytes: i64Table size excluding indexes (bytes)
index_size_bytes: i64Index size (bytes)
row_count: i64Approximate row count
seq_scans: i64Number of sequential scans
index_scans: i64Number of index scans
live_tuples: i64Number of live tuples
dead_tuples: i64Number of dead tuples
last_vacuum: Option<DateTime<Utc>>Last vacuum time
last_analyze: Option<DateTime<Utc>>Last analyze time
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<'de> Deserialize<'de> for TableStats
impl<'de> Deserialize<'de> for TableStats
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
Auto Trait Implementations§
impl Freeze for TableStats
impl RefUnwindSafe for TableStats
impl Send for TableStats
impl Sync for TableStats
impl Unpin 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
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: 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more