pub struct WorkspaceMemberListBuilder { /* private fields */ }Expand description
Builder for WorkspaceMemberListRequest.
Implementations§
Source§impl WorkspaceMemberListBuilder
impl WorkspaceMemberListBuilder
Sourcepub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn workspace_id<VALUE: Into<String>>(self, value: VALUE) -> Self
Workspace identifier
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<WorkspaceMemberListRequest, WorkspaceMemberListBuilderError>
pub fn build( self, ) -> Result<WorkspaceMemberListRequest, WorkspaceMemberListBuilderError>
Source§impl WorkspaceMemberListBuilder
impl WorkspaceMemberListBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<WorkspaceMemberList>
pub async fn create(self) -> ApiResponseOrError<WorkspaceMemberList>
Creates a new workspace member list request and returns the response.
This is a convenience method that builds the request from the builder and sends it to the Workspace Members API.
§Example
let credentials = Credentials::from_env();
let members = WorkspaceMemberList::builder("workspace_123456789")
.credentials(credentials)
.limit(10u32)
.create()
.await?;Trait Implementations§
Source§impl Clone for WorkspaceMemberListBuilder
impl Clone for WorkspaceMemberListBuilder
Source§fn clone(&self) -> WorkspaceMemberListBuilder
fn clone(&self) -> WorkspaceMemberListBuilder
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 WorkspaceMemberListBuilder
impl Debug for WorkspaceMemberListBuilder
Source§impl Default for WorkspaceMemberListBuilder
impl Default for WorkspaceMemberListBuilder
impl StructuralPartialEq for WorkspaceMemberListBuilder
Auto Trait Implementations§
impl Freeze for WorkspaceMemberListBuilder
impl RefUnwindSafe for WorkspaceMemberListBuilder
impl Send for WorkspaceMemberListBuilder
impl Sync for WorkspaceMemberListBuilder
impl Unpin for WorkspaceMemberListBuilder
impl UnwindSafe for WorkspaceMemberListBuilder
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