pub struct ListUserBuilder {
limit: Option<Option<u32>>,
offset: Option<Option<u32>>,
user_ids: Option<Vec<Uuid>>,
username: Option<Option<String>>,
order: Option<Option<UserSortOrder>>,
/* private fields */
}
Expand description
Builder for ListUser
.
Fields§
§limit: Option<Option<u32>>
§offset: Option<Option<u32>>
§user_ids: Option<Vec<Uuid>>
§username: Option<Option<String>>
§order: Option<Option<UserSortOrder>>
Implementations§
Source§impl ListUserBuilder
impl ListUserBuilder
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn offset<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn user_ids<VALUE: Into<Vec<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn add_user_id<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn username<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn order<VALUE: Into<UserSortOrder>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<ListUser, BuilderError>
pub fn build(&self) -> Result<ListUser, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl ListUserBuilder
impl ListUserBuilder
pub async fn send(&self) -> UserListResponse
Trait Implementations§
Source§impl Clone for ListUserBuilder
impl Clone for ListUserBuilder
Source§fn clone(&self) -> ListUserBuilder
fn clone(&self) -> ListUserBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ListUserBuilder
impl !RefUnwindSafe for ListUserBuilder
impl !Send for ListUserBuilder
impl !Sync for ListUserBuilder
impl Unpin for ListUserBuilder
impl !UnwindSafe for ListUserBuilder
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