pub struct GetNitroStickerPacks<'a> { /* private fields */ }
Expand description
Returns a list of sticker packs available to Nitro subscribers.
§Examples
use twilight_http::Client;
let client = Client::new("my token".to_owned());
let packs = client.nitro_sticker_packs().await?.model().await?;
println!("{}", packs.sticker_packs.len());
Trait Implementations§
source§impl IntoFuture for GetNitroStickerPacks<'_>
impl IntoFuture for GetNitroStickerPacks<'_>
source§type Output = Result<Response<StickerPackListing>, Error>
type Output = Result<Response<StickerPackListing>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<StickerPackListing>
type IntoFuture = ResponseFuture<StickerPackListing>
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 GetNitroStickerPacks<'_>
impl TryIntoRequest for GetNitroStickerPacks<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetNitroStickerPacks<'a>
impl<'a> !RefUnwindSafe for GetNitroStickerPacks<'a>
impl<'a> Send for GetNitroStickerPacks<'a>
impl<'a> Sync for GetNitroStickerPacks<'a>
impl<'a> Unpin for GetNitroStickerPacks<'a>
impl<'a> !UnwindSafe for GetNitroStickerPacks<'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