Struct twilight_http::request::channel::webhook::DeleteWebhook
source · [−]pub struct DeleteWebhook<'a> { /* private fields */ }
Expand description
Delete a webhook by its ID.
Implementations
sourceimpl<'a> DeleteWebhook<'a>
impl<'a> DeleteWebhook<'a>
sourcepub const fn token(self, token: &'a str) -> Self
pub const fn token(self, token: &'a str) -> Self
Specify the token for auth, if not already authenticated with a Bot token.
sourcepub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl<'a> AuditLogReason<'a> for DeleteWebhook<'a>
impl<'a> AuditLogReason<'a> for DeleteWebhook<'a>
sourceimpl TryIntoRequest for DeleteWebhook<'_>
impl TryIntoRequest for DeleteWebhook<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DeleteWebhook<'a>
impl<'a> Send for DeleteWebhook<'a>
impl<'a> Sync for DeleteWebhook<'a>
impl<'a> Unpin for DeleteWebhook<'a>
impl<'a> !UnwindSafe for DeleteWebhook<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more