Struct twilight_http::request::sticker::GetSticker
source · [−]pub struct GetSticker<'a> { /* private fields */ }
Expand description
Returns a single sticker by its ID.
Examples
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let id = Id::new(123);
let sticker = client.sticker(id).exec().await?.model().await?;
Implementations
pub fn exec(self) -> ResponseFuture<Sticker>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Sticker>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
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
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetSticker<'a>
impl<'a> Send for GetSticker<'a>
impl<'a> Sync for GetSticker<'a>
impl<'a> Unpin for GetSticker<'a>
impl<'a> !UnwindSafe for GetSticker<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more