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 project(project_hash: ProjectHash) -> Self
pub fn project(project_hash: ProjectHash) -> Self
Create a filter for a specific project (top-level sessions only by default)
pub fn limit(self, limit: usize) -> Self
pub fn provider(self, provider: String) -> Self
pub fn order(self, order: SessionOrder) -> Self
pub fn since(self, since: String) -> Self
pub fn until(self, until: String) -> Self
Sourcepub fn include_children(self) -> Self
pub fn include_children(self) -> Self
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