Struct twilight_http::request::channel::webhook::GetWebhook
source · [−]pub struct GetWebhook<'a> { /* private fields */ }
Expand description
Get a webhook by ID.
Implementations
sourceimpl<'a> GetWebhook<'a>
impl<'a> GetWebhook<'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<Webhook>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Webhook>ⓘ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 TryIntoRequest for GetWebhook<'_>
impl TryIntoRequest for GetWebhook<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetWebhook<'a>
impl<'a> Send for GetWebhook<'a>
impl<'a> Sync for GetWebhook<'a>
impl<'a> Unpin for GetWebhook<'a>
impl<'a> !UnwindSafe for GetWebhook<'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