pub struct StorageStatsQuery {
pub active_only: bool,
pub framework: Option<String>,
}Expand description
Query builder for storage statistics.
StorageStatsQuery provides a fluent API for filtering which sessions
are included in the aggregation.
Fields§
§active_only: boolWhen true, only include active sessions (ended_at IS NULL)
framework: Option<String>Filter by framework (claude, cursor, gemini, codex)
Implementations§
Source§impl StorageStatsQuery
impl StorageStatsQuery
Sourcepub fn active_only(self) -> Self
pub fn active_only(self) -> Self
Filter to only active sessions
Sourcepub fn with_framework(self, framework: impl Into<String>) -> Self
pub fn with_framework(self, framework: impl Into<String>) -> Self
Filter by framework
Trait Implementations§
Source§impl Clone for StorageStatsQuery
impl Clone for StorageStatsQuery
Source§fn clone(&self) -> StorageStatsQuery
fn clone(&self) -> StorageStatsQuery
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 StorageStatsQuery
impl Debug for StorageStatsQuery
Source§impl Default for StorageStatsQuery
impl Default for StorageStatsQuery
Source§fn default() -> StorageStatsQuery
fn default() -> StorageStatsQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageStatsQuery
impl RefUnwindSafe for StorageStatsQuery
impl Send for StorageStatsQuery
impl Sync for StorageStatsQuery
impl Unpin for StorageStatsQuery
impl UnwindSafe for StorageStatsQuery
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