pub struct InviteListBuilder { /* private fields */ }Expand description
Builder for InviteListRequest.
Implementations§
Source§impl InviteListBuilder
impl InviteListBuilder
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<InviteListRequest, InviteListBuilderError>
pub fn build(self) -> Result<InviteListRequest, InviteListBuilderError>
Source§impl InviteListBuilder
impl InviteListBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<InviteList>
pub async fn create(self) -> ApiResponseOrError<InviteList>
Creates a new invite list request and returns the response.
This is a convenience method that builds the request from the builder and sends it to the Invites API.
§Example
let credentials = Credentials::from_env();
let invites = InviteList::builder()
.credentials(credentials)
.limit(10u32)
.create()
.await?;Trait Implementations§
Source§impl Clone for InviteListBuilder
impl Clone for InviteListBuilder
Source§fn clone(&self) -> InviteListBuilder
fn clone(&self) -> InviteListBuilder
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 InviteListBuilder
impl Debug for InviteListBuilder
Source§impl Default for InviteListBuilder
impl Default for InviteListBuilder
Source§impl PartialEq for InviteListBuilder
impl PartialEq for InviteListBuilder
impl StructuralPartialEq for InviteListBuilder
Auto Trait Implementations§
impl Freeze for InviteListBuilder
impl RefUnwindSafe for InviteListBuilder
impl Send for InviteListBuilder
impl Sync for InviteListBuilder
impl Unpin for InviteListBuilder
impl UnwindSafe for InviteListBuilder
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