pub struct SessionQuery {
pub status: Option<SessionStatus>,
pub cursor: Option<String>,
pub limit: Option<u32>,
}Expand description
Query for listing sessions.
Fields§
§status: Option<SessionStatus>Filter by session status.
cursor: Option<String>Cursor for pagination.
limit: Option<u32>Maximum number of sessions to return, default 25, maximum 1000.
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
Source§impl IntoParams for SessionQuery
impl IntoParams for SessionQuery
Source§impl List<SessionQuery, Session> for SessionsResource
impl List<SessionQuery, Session> for SessionsResource
Source§fn list(
&self,
params: Option<TParams>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn list( &self, params: Option<TParams>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Query a resource with optional query parameters. Read more
Source§fn list_all(
&self,
params: TParams,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn list_all( &self, params: TParams, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Query a resource with query parameters, continuing until the cursor is exhausted. Read more
Source§fn list_all_stream(
&self,
params: TParams,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn list_all_stream( &self, params: TParams, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
List resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Source§impl SetCursor for SessionQuery
impl SetCursor for SessionQuery
Source§fn set_cursor(&mut self, cursor: Option<String>)
fn set_cursor(&mut self, cursor: Option<String>)
Set cursor to the given value.
Auto Trait Implementations§
impl Freeze for SessionQuery
impl RefUnwindSafe for SessionQuery
impl Send for SessionQuery
impl Sync for SessionQuery
impl Unpin 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