Struct twilight_http::request::guild::sticker::GetGuildSticker
source · [−]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)
.exec()
.await?
.model()
.await?;
println!("{sticker:#?}");
Implementations
sourceimpl<'a> GetGuildSticker<'a>
impl<'a> GetGuildSticker<'a>
sourcepub 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>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl TryIntoRequest for GetGuildSticker<'_>
impl TryIntoRequest for GetGuildSticker<'_>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more