pub struct StickerPackId(/* private fields */);
Expand description
An identifier for a sticker pack.
Implementations§
Source§impl StickerPackId
impl StickerPackId
Source§impl StickerPackId
impl StickerPackId
Sourcepub async fn to_sticker_pack(
self,
http: impl AsRef<Http>,
) -> Result<StickerPack>
pub async fn to_sticker_pack( self, http: impl AsRef<Http>, ) -> Result<StickerPack>
Gets the StickerPack
object.
§Errors
Returns Error::Http
if a StickerPack
with that StickerPackId
does not exist, or
is otherwise unavailable.
Trait Implementations§
Source§impl AsRef<StickerPackId> for StickerPackId
impl AsRef<StickerPackId> for StickerPackId
Source§impl Clone for StickerPackId
impl Clone for StickerPackId
Source§fn clone(&self) -> StickerPackId
fn clone(&self) -> StickerPackId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StickerPackId
impl Debug for StickerPackId
Source§impl Default for StickerPackId
impl Default for StickerPackId
Source§impl<'de> Deserialize<'de> for StickerPackId
impl<'de> Deserialize<'de> for StickerPackId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StickerPackId
impl Display for StickerPackId
Source§impl<'a> From<&'a StickerPackId> for StickerPackId
impl<'a> From<&'a StickerPackId> for StickerPackId
Source§fn from(id: &'a StickerPackId) -> StickerPackId
fn from(id: &'a StickerPackId) -> StickerPackId
Converts to this type from the input type.
Source§impl From<NonZero<u64>> for StickerPackId
impl From<NonZero<u64>> for StickerPackId
Source§fn from(id: NonZeroU64) -> StickerPackId
fn from(id: NonZeroU64) -> StickerPackId
Converts to this type from the input type.
Source§impl From<StickerPackId> for NonZeroI64
impl From<StickerPackId> for NonZeroI64
Source§fn from(id: StickerPackId) -> NonZeroI64
fn from(id: StickerPackId) -> NonZeroI64
Converts to this type from the input type.
Source§impl From<StickerPackId> for NonZeroU64
impl From<StickerPackId> for NonZeroU64
Source§fn from(id: StickerPackId) -> NonZeroU64
fn from(id: StickerPackId) -> NonZeroU64
Converts to this type from the input type.
Source§impl From<StickerPackId> for i64
impl From<StickerPackId> for i64
Source§fn from(id: StickerPackId) -> i64
fn from(id: StickerPackId) -> i64
Converts to this type from the input type.
Source§impl From<StickerPackId> for u64
impl From<StickerPackId> for u64
Source§fn from(id: StickerPackId) -> u64
fn from(id: StickerPackId) -> u64
Converts to this type from the input type.
Source§impl From<u64> for StickerPackId
impl From<u64> for StickerPackId
Source§fn from(id: u64) -> StickerPackId
fn from(id: u64) -> StickerPackId
Converts to this type from the input type.
Source§impl FromStr for StickerPackId
impl FromStr for StickerPackId
Source§impl Hash for StickerPackId
impl Hash for StickerPackId
Source§impl Ord for StickerPackId
impl Ord for StickerPackId
Source§fn cmp(&self, other: &StickerPackId) -> Ordering
fn cmp(&self, other: &StickerPackId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<u64> for StickerPackId
impl PartialEq<u64> for StickerPackId
Source§impl PartialEq for StickerPackId
impl PartialEq for StickerPackId
Source§impl PartialOrd for StickerPackId
impl PartialOrd for StickerPackId
Source§impl Serialize for StickerPackId
impl Serialize for StickerPackId
impl Copy for StickerPackId
impl Eq for StickerPackId
impl StructuralPartialEq for StickerPackId
Auto Trait Implementations§
impl Freeze for StickerPackId
impl RefUnwindSafe for StickerPackId
impl Send for StickerPackId
impl Sync for StickerPackId
impl Unpin for StickerPackId
impl UnwindSafe for StickerPackId
Blanket Implementations§
Source§impl<T> ArgumentConvert for Twhere
T: FromStr,
impl<T> ArgumentConvert for Twhere
T: FromStr,
Source§fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn convert<'life0, 'async_trait>(
__arg0: impl CacheHttp + 'async_trait,
__arg1: Option<GuildId>,
__arg2: Option<ChannelId>,
s: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<T, <T as ArgumentConvert>::Err>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Parses a string
s
as a command parameter of this type.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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.