Struct twilight_http::request::guild::sticker::GetGuildStickers
source · [−]pub struct GetGuildStickers<'a> { /* private fields */ }
Expand description
Returns a list of stickers in a guild.
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 stickers = client
.guild_stickers(guild_id)
.exec()
.await?
.models()
.await?;
println!("{}", stickers.len());
Implementations
sourceimpl<'a> GetGuildStickers<'a>
impl<'a> GetGuildStickers<'a>
sourcepub fn exec(self) -> ResponseFuture<ListBody<Sticker>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<ListBody<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 GetGuildStickers<'_>
impl TryIntoRequest for GetGuildStickers<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetGuildStickers<'a>
impl<'a> Send for GetGuildStickers<'a>
impl<'a> Sync for GetGuildStickers<'a>
impl<'a> Unpin for GetGuildStickers<'a>
impl<'a> !UnwindSafe for GetGuildStickers<'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