#[non_exhaustive]pub struct ClientSessionListOptions {Show 13 fields
pub account_id: i64,
pub region_id: Option<i64>,
pub metadata_cluster_id: Option<i64>,
pub volume_id: Option<i64>,
pub user_id: Option<i64>,
pub client_type: Option<String>,
pub status: Option<ClientSessionStatus>,
pub is_active: Option<bool>,
pub os_name: Option<String>,
pub platform: Option<String>,
pub search: Option<String>,
pub page: Option<i64>,
pub limit: Option<i64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: i64§region_id: Option<i64>§metadata_cluster_id: Option<i64>§volume_id: Option<i64>§user_id: Option<i64>§client_type: Option<String>§status: Option<ClientSessionStatus>§is_active: Option<bool>§os_name: Option<String>§platform: Option<String>§search: Option<String>§page: Option<i64>§limit: Option<i64>Implementations§
Source§impl ClientSessionListOptions
impl ClientSessionListOptions
Sourcepub fn new(account_id: i64) -> Self
pub fn new(account_id: i64) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_region_id(self, value: i64) -> Self
pub fn with_region_id(self, value: i64) -> Self
Sets region_id.
Sourcepub fn with_metadata_cluster_id(self, value: i64) -> Self
pub fn with_metadata_cluster_id(self, value: i64) -> Self
Sets metadata_cluster_id.
Sourcepub fn with_volume_id(self, value: i64) -> Self
pub fn with_volume_id(self, value: i64) -> Self
Sets volume_id.
Sourcepub fn with_user_id(self, value: i64) -> Self
pub fn with_user_id(self, value: i64) -> Self
Sets user_id.
Sourcepub fn with_client_type(self, value: impl Into<String>) -> Self
pub fn with_client_type(self, value: impl Into<String>) -> Self
Sets client_type.
Sourcepub fn with_status(self, value: ClientSessionStatus) -> Self
pub fn with_status(self, value: ClientSessionStatus) -> Self
Sets status.
Sourcepub fn with_is_active(self, value: bool) -> Self
pub fn with_is_active(self, value: bool) -> Self
Sets is_active.
Sourcepub fn with_os_name(self, value: impl Into<String>) -> Self
pub fn with_os_name(self, value: impl Into<String>) -> Self
Sets os_name.
Sourcepub fn with_platform(self, value: impl Into<String>) -> Self
pub fn with_platform(self, value: impl Into<String>) -> Self
Sets platform.
Sourcepub fn with_search(self, value: impl Into<String>) -> Self
pub fn with_search(self, value: impl Into<String>) -> Self
Sets search.
Sourcepub fn with_limit(self, value: i64) -> Self
pub fn with_limit(self, value: i64) -> Self
Sets limit.
Trait Implementations§
Source§impl Clone for ClientSessionListOptions
impl Clone for ClientSessionListOptions
Source§impl Debug for ClientSessionListOptions
impl Debug for ClientSessionListOptions
Auto Trait Implementations§
impl Freeze for ClientSessionListOptions
impl RefUnwindSafe for ClientSessionListOptions
impl Send for ClientSessionListOptions
impl Sync for ClientSessionListOptions
impl Unpin for ClientSessionListOptions
impl UnsafeUnpin for ClientSessionListOptions
impl UnwindSafe for ClientSessionListOptions
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