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).await?.model().await?;Implementations§
source§impl<'a> GetSticker<'a>
impl<'a> GetSticker<'a>
Trait Implementations§
source§impl IntoFuture for GetSticker<'_>
impl IntoFuture for GetSticker<'_>
§type Output = Result<Response<Sticker>, Error>
type Output = Result<Response<Sticker>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<Sticker>
type IntoFuture = ResponseFuture<Sticker>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more