pub struct GetGuildSticker<'a> { /* private fields */ }
Expand description
Returns a guild sticker by the guild’s ID and the sticker’s ID.
§Examples
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let guild_id = Id::new(1);
let sticker_id = Id::new(2);
let sticker = client
.guild_sticker(guild_id, sticker_id)
.await?
.model()
.await?;
println!("{sticker:#?}");
Trait Implementations§
source§impl IntoFuture for GetGuildSticker<'_>
impl IntoFuture for GetGuildSticker<'_>
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 GetGuildSticker<'_>
impl TryIntoRequest for GetGuildSticker<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetGuildSticker<'a>
impl<'a> !RefUnwindSafe for GetGuildSticker<'a>
impl<'a> Send for GetGuildSticker<'a>
impl<'a> Sync for GetGuildSticker<'a>
impl<'a> Unpin for GetGuildSticker<'a>
impl<'a> !UnwindSafe for GetGuildSticker<'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