pub struct SessionListParams {
pub limit: Option<usize>,
}Expand description
Parameters for listing recent sessions. The limit is a soft page size: omitted values keep the historical full-list behavior.
Fields§
§limit: Option<usize>Maximum sessions returned, newest first.
Implementations§
Source§impl SessionListParams
impl SessionListParams
Sourcepub fn effective_limit(&self) -> usize
pub fn effective_limit(&self) -> usize
Clamp the requested limit into 1..=MAX_SESSION_LIST_LIMIT.
Trait Implementations§
Source§impl Clone for SessionListParams
impl Clone for SessionListParams
Source§impl Debug for SessionListParams
impl Debug for SessionListParams
Source§impl<'de> Deserialize<'de> for SessionListParams
impl<'de> Deserialize<'de> for SessionListParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionListParams
Source§impl PartialEq for SessionListParams
impl PartialEq for SessionListParams
Source§impl Serialize for SessionListParams
impl Serialize for SessionListParams
impl StructuralPartialEq for SessionListParams
Auto Trait Implementations§
impl Forget for SessionListParams
impl Freeze for SessionListParams
impl RefUnwindSafe for SessionListParams
impl Send for SessionListParams
impl Sync for SessionListParams
impl Unpin for SessionListParams
impl UnsafeUnpin for SessionListParams
impl UnwindSafe for SessionListParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.