pub struct SessionQuery {
pub agent: Option<String>,
pub project: Option<String>,
pub status: Option<SessionStatus>,
pub limit: Option<usize>,
pub offset: Option<usize>,
pub sort: SortOrder,
}Expand description
Query parameters for listing sessions
Fields§
§agent: Option<String>Filter by agent name
project: Option<String>Filter by project slug
status: Option<SessionStatus>Filter by session status
limit: Option<usize>Maximum number of results to return
offset: Option<usize>Number of results to skip (for pagination)
sort: SortOrderSort order
Implementations§
Source§impl SessionQuery
impl SessionQuery
Sourcepub fn with_agent(self, agent: impl Into<String>) -> Self
pub fn with_agent(self, agent: impl Into<String>) -> Self
Filter by agent name
Sourcepub fn with_project(self, project: impl Into<String>) -> Self
pub fn with_project(self, project: impl Into<String>) -> Self
Filter by project
Sourcepub fn with_status(self, status: SessionStatus) -> Self
pub fn with_status(self, status: SessionStatus) -> Self
Filter by status
Sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Set result limit
Sourcepub fn with_offset(self, offset: usize) -> Self
pub fn with_offset(self, offset: usize) -> Self
Set offset for pagination
Trait Implementations§
Source§impl Clone for SessionQuery
impl Clone for SessionQuery
Source§fn clone(&self) -> SessionQuery
fn clone(&self) -> SessionQuery
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 SessionQuery
impl Debug for SessionQuery
Source§impl Default for SessionQuery
impl Default for SessionQuery
Source§fn default() -> SessionQuery
fn default() -> SessionQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionQuery
impl RefUnwindSafe for SessionQuery
impl Send for SessionQuery
impl Sync for SessionQuery
impl Unpin for SessionQuery
impl UnsafeUnpin for SessionQuery
impl UnwindSafe for SessionQuery
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