pub struct UserListBuilder { /* private fields */ }Expand description
Builder for UserListRequest.
Implementations§
Source§impl UserListBuilder
impl UserListBuilder
Sourcepub fn before_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn before_id<VALUE: Into<String>>(self, value: VALUE) -> Self
ID of the object to use as a cursor for pagination (previous page)
Sourcepub fn after_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn after_id<VALUE: Into<String>>(self, value: VALUE) -> Self
ID of the object to use as a cursor for pagination (next page)
Sourcepub fn limit<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn limit<VALUE: Into<u32>>(self, value: VALUE) -> Self
Number of items to return per page (1-1000)
Sourcepub fn credentials<VALUE: Into<Credentials>>(self, value: VALUE) -> Self
pub fn credentials<VALUE: Into<Credentials>>(self, value: VALUE) -> Self
Credentials for authentication (not serialized)
Sourcepub fn build(self) -> Result<UserListRequest, UserListBuilderError>
pub fn build(self) -> Result<UserListRequest, UserListBuilderError>
Source§impl UserListBuilder
impl UserListBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<UserList>
pub async fn create(self) -> ApiResponseOrError<UserList>
Creates a new user list request and returns the response.
This is a convenience method that builds the request from the builder and sends it to the Users API.
§Example
let credentials = Credentials::from_env();
let users = UserList::builder()
.credentials(credentials)
.limit(10u32)
.create()
.await?;Trait Implementations§
Source§impl Clone for UserListBuilder
impl Clone for UserListBuilder
Source§fn clone(&self) -> UserListBuilder
fn clone(&self) -> UserListBuilder
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 moreSource§impl Debug for UserListBuilder
impl Debug for UserListBuilder
Source§impl Default for UserListBuilder
impl Default for UserListBuilder
Source§impl PartialEq for UserListBuilder
impl PartialEq for UserListBuilder
impl StructuralPartialEq for UserListBuilder
Auto Trait Implementations§
impl Freeze for UserListBuilder
impl RefUnwindSafe for UserListBuilder
impl Send for UserListBuilder
impl Sync for UserListBuilder
impl Unpin for UserListBuilder
impl UnwindSafe for UserListBuilder
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