pub struct InviteDeleteBuilder { /* private fields */ }Expand description
Builder for InviteDeleteRequest.
Implementations§
Source§impl InviteDeleteBuilder
impl InviteDeleteBuilder
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<InviteDeleteRequest, InviteDeleteBuilderError>
pub fn build(self) -> Result<InviteDeleteRequest, InviteDeleteBuilderError>
Source§impl InviteDeleteBuilder
impl InviteDeleteBuilder
Sourcepub async fn create(self) -> ApiResponseOrError<InviteDeleted>
pub async fn create(self) -> ApiResponseOrError<InviteDeleted>
Creates a new invite delete 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 deleted_invite = Invite::delete_builder("invite_123456789")
.credentials(credentials)
.create()
.await?;Trait Implementations§
Source§impl Clone for InviteDeleteBuilder
impl Clone for InviteDeleteBuilder
Source§fn clone(&self) -> InviteDeleteBuilder
fn clone(&self) -> InviteDeleteBuilder
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 InviteDeleteBuilder
impl Debug for InviteDeleteBuilder
Source§impl Default for InviteDeleteBuilder
impl Default for InviteDeleteBuilder
Source§impl PartialEq for InviteDeleteBuilder
impl PartialEq for InviteDeleteBuilder
impl StructuralPartialEq for InviteDeleteBuilder
Auto Trait Implementations§
impl Freeze for InviteDeleteBuilder
impl RefUnwindSafe for InviteDeleteBuilder
impl Send for InviteDeleteBuilder
impl Sync for InviteDeleteBuilder
impl Unpin for InviteDeleteBuilder
impl UnwindSafe for InviteDeleteBuilder
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