pub struct DatabaseStats {
pub observations: i64,
pub capsules: i64,
pub summaries: i64,
pub pins: i64,
pub redacted: i64,
pub open_capsules: i64,
pub latest_ts: Option<Timestamp>,
pub size_bytes: i64,
}Expand description
Aggregate database statistics returned by
SqliteKindlingStore::database_stats.
Fields§
§observations: i64§capsules: i64§summaries: i64§pins: i64§redacted: i64§open_capsules: i64§latest_ts: Option<Timestamp>Newest observation timestamp, or None when there are no observations.
size_bytes: i64page_count * page_size.
Trait Implementations§
Source§impl Clone for DatabaseStats
impl Clone for DatabaseStats
Source§fn clone(&self) -> DatabaseStats
fn clone(&self) -> DatabaseStats
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 DatabaseStats
impl Debug for DatabaseStats
impl Eq for DatabaseStats
Source§impl PartialEq for DatabaseStats
impl PartialEq for DatabaseStats
Source§fn eq(&self, other: &DatabaseStats) -> bool
fn eq(&self, other: &DatabaseStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DatabaseStats
Auto Trait Implementations§
impl Freeze for DatabaseStats
impl RefUnwindSafe for DatabaseStats
impl Send for DatabaseStats
impl Sync for DatabaseStats
impl Unpin for DatabaseStats
impl UnsafeUnpin for DatabaseStats
impl UnwindSafe for DatabaseStats
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.