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> !RefUnwindSafe for GetSticker<'a>
impl<'a> !UnwindSafe for GetSticker<'a>
impl<'a> Forget for GetSticker<'a>
impl<'a> Freeze for GetSticker<'a>where
&'a Client: Freeze,
PhantomData<fn(StickerMarker) -> StickerMarker>: Freeze,
NonZero<u64>: Freeze,
impl<'a> Move for GetSticker<'a>
impl<'a> Send for GetSticker<'a>
impl<'a> Sync for GetSticker<'a>where
RawVecInner: Sync,
NonZero<u64>: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
impl<'a> Unpin for GetSticker<'a>
impl<'a> UnsafeUnpin for GetSticker<'a>where
&'a Client: UnsafeUnpin,
PhantomData<fn(StickerMarker) -> StickerMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
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