#[non_exhaustive]pub struct UserListOptions {
pub account_id: i64,
pub search: Option<String>,
pub is_active: Option<bool>,
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§search: Option<String>§is_active: Option<bool>§page: Option<i64>§limit: Option<i64>Implementations§
Source§impl UserListOptions
impl UserListOptions
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_search(self, value: impl Into<String>) -> Self
pub fn with_search(self, value: impl Into<String>) -> Self
Sets search.
Sourcepub fn with_is_active(self, value: bool) -> Self
pub fn with_is_active(self, value: bool) -> Self
Sets is_active.
Sourcepub fn with_limit(self, value: i64) -> Self
pub fn with_limit(self, value: i64) -> Self
Sets limit.
Trait Implementations§
Source§impl Clone for UserListOptions
impl Clone for UserListOptions
Source§impl Debug for UserListOptions
impl Debug for UserListOptions
Auto Trait Implementations§
impl Freeze for UserListOptions
impl RefUnwindSafe for UserListOptions
impl Send for UserListOptions
impl Sync for UserListOptions
impl Unpin for UserListOptions
impl UnsafeUnpin for UserListOptions
impl UnwindSafe for UserListOptions
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