pub struct DatabaseStats {
pub session_count: i32,
pub message_count: i32,
pub link_count: i32,
pub oldest_session: Option<DateTime<Utc>>,
pub newest_session: Option<DateTime<Utc>>,
pub sessions_by_tool: Vec<(String, i32)>,
}Expand description
Statistics about the Lore database.
Fields§
§session_count: i32Total number of sessions.
message_count: i32Total number of messages.
link_count: i32Total number of session links.
oldest_session: Option<DateTime<Utc>>Timestamp of the oldest session.
newest_session: Option<DateTime<Utc>>Timestamp of the newest session.
sessions_by_tool: Vec<(String, i32)>Session counts grouped by tool name.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatabaseStats
impl RefUnwindSafe for DatabaseStats
impl Send for DatabaseStats
impl Sync for DatabaseStats
impl Unpin 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