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?;
Trait Implementations§
source§impl IntoFuture for GetSticker<'_>
impl IntoFuture for GetSticker<'_>
source§type Output = Result<Response<Sticker>, Error>
type Output = Result<Response<Sticker>, Error>
The output that the future will produce on completion.
source§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
source§impl TryIntoRequest for GetSticker<'_>
impl TryIntoRequest for GetSticker<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetSticker<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more