Struct discord_flows::model::StickerPackId
source · pub struct StickerPackId(pub u64);Expand description
An identifier for a sticker pack.
Tuple Fields§
§0: u64Implementations§
source§impl StickerPackId
impl StickerPackId
sourcepub fn created_at(&self) -> Timestamp
pub fn created_at(&self) -> Timestamp
Retrieves the time that the Id was created at.
sourcepub fn as_mut_u64(&mut self) -> &mut u64
pub fn as_mut_u64(&mut self) -> &mut u64
Mutably borrow inner Id.
Trait Implementations§
source§impl AsRef<StickerPackId> for StickerPackId
impl AsRef<StickerPackId> for StickerPackId
source§fn as_ref(&self) -> &StickerPackId
fn as_ref(&self) -> &StickerPackId
Converts this type into a shared reference of the (usually inferred) input type.
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§fn default() -> StickerPackId
fn default() -> StickerPackId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StickerPackId
impl<'de> Deserialize<'de> for StickerPackId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StickerPackId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<StickerPackId, <__D as Deserializer<'de>>::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<u64> for StickerPackId
impl From<u64> for StickerPackId
source§fn from(id_as_u64: u64) -> StickerPackId
fn from(id_as_u64: u64) -> StickerPackId
Converts to this type from the input type.
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<StickerPackId> for StickerPackId
impl PartialEq<StickerPackId> for StickerPackId
source§fn eq(&self, other: &StickerPackId) -> bool
fn eq(&self, other: &StickerPackId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<u64> for StickerPackId
impl PartialEq<u64> for StickerPackId
source§impl PartialOrd<StickerPackId> for StickerPackId
impl PartialOrd<StickerPackId> for StickerPackId
source§fn partial_cmp(&self, other: &StickerPackId) -> Option<Ordering>
fn partial_cmp(&self, other: &StickerPackId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for StickerPackId
impl Serialize for StickerPackId
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for StickerPackId
impl Eq for StickerPackId
impl StructuralEq for StickerPackId
impl StructuralPartialEq for StickerPackId
Auto Trait Implementations§
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> 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