pub struct SessionFilter {
pub scope: ProjectScope,
pub limit: Option<usize>,
pub provider: Option<String>,
pub order: SessionOrder,
pub since: Option<String>,
pub until: Option<String>,
pub top_level_only: bool,
}Fields§
§scope: ProjectScope§limit: Option<usize>§provider: Option<String>§order: SessionOrder§since: Option<String>§until: Option<String>§top_level_only: boolImplementations§
Source§impl SessionFilter
impl SessionFilter
Sourcepub fn all() -> SessionFilter
pub fn all() -> SessionFilter
Create a filter for all projects (top-level sessions only by default)
Sourcepub fn project(project_hash: ProjectHash) -> SessionFilter
pub fn project(project_hash: ProjectHash) -> SessionFilter
Create a filter for a specific project (top-level sessions only by default)
pub fn limit(self, limit: usize) -> SessionFilter
pub fn provider(self, provider: String) -> SessionFilter
pub fn order(self, order: SessionOrder) -> SessionFilter
pub fn since(self, since: String) -> SessionFilter
pub fn until(self, until: String) -> SessionFilter
Sourcepub fn include_children(self) -> SessionFilter
pub fn include_children(self) -> SessionFilter
Include child sessions (subagents) in the results
Trait Implementations§
Source§impl Clone for SessionFilter
impl Clone for SessionFilter
Source§fn clone(&self) -> SessionFilter
fn clone(&self) -> SessionFilter
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 SessionFilter
impl RefUnwindSafe for SessionFilter
impl Send for SessionFilter
impl Sync for SessionFilter
impl Unpin for SessionFilter
impl UnwindSafe for SessionFilter
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