Struct twilight_http::request::sticker::GetSticker [−][src]
pub struct GetSticker<'a> { /* fields omitted */ }Expand description
Returns a single sticker by its ID.
Examples
use twilight_http::Client;
use twilight_model::channel::message::sticker::StickerId;
let client = Client::new("my token".to_owned());
let id = StickerId::new(123).expect("non zero");
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.
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