pub struct Stats {
pub memories: usize,
pub deleted: usize,
pub dimensions: usize,
pub file_bytes: u64,
pub agents: Vec<String>,
pub encrypted: bool,
pub created_at: i64,
pub index: Option<IndexInfo>,
pub wal_pages: u64,
}Expand description
Summary statistics for a database.
Fields§
§memories: usizeLive (non-deleted) memory count.
deleted: usizeTombstoned entries awaiting compaction.
dimensions: usizeEmbedding dimensionality.
file_bytes: u64File size in bytes.
agents: Vec<String>Distinct agent IDs present.
encrypted: boolWhether pages are encrypted (always true in v1).
created_at: i64Creation time (unix seconds).
index: Option<IndexInfo>ANN index shape, if an index has been built.
wal_pages: u64Current size of the write-ahead log region, in 8 KiB pages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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