Struct discord_flows::model::InteractionId
source · pub struct InteractionId(pub u64);
Expand description
An identifier for an interaction.
Tuple Fields§
§0: u64
Implementations§
source§impl InteractionId
impl InteractionId
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<InteractionId> for InteractionId
impl AsRef<InteractionId> for InteractionId
source§fn as_ref(&self) -> &InteractionId
fn as_ref(&self) -> &InteractionId
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for InteractionId
impl Clone for InteractionId
source§fn clone(&self) -> InteractionId
fn clone(&self) -> InteractionId
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 InteractionId
impl Debug for InteractionId
source§impl Default for InteractionId
impl Default for InteractionId
source§fn default() -> InteractionId
fn default() -> InteractionId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InteractionId
impl<'de> Deserialize<'de> for InteractionId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InteractionId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InteractionId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for InteractionId
impl Display for InteractionId
source§impl<'a> From<&'a InteractionId> for InteractionId
impl<'a> From<&'a InteractionId> for InteractionId
source§fn from(id: &'a InteractionId) -> InteractionId
fn from(id: &'a InteractionId) -> InteractionId
Converts to this type from the input type.
source§impl From<u64> for InteractionId
impl From<u64> for InteractionId
source§fn from(id_as_u64: u64) -> InteractionId
fn from(id_as_u64: u64) -> InteractionId
Converts to this type from the input type.
source§impl Hash for InteractionId
impl Hash for InteractionId
source§impl Ord for InteractionId
impl Ord for InteractionId
source§fn cmp(&self, other: &InteractionId) -> Ordering
fn cmp(&self, other: &InteractionId) -> 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<InteractionId> for InteractionId
impl PartialEq<InteractionId> for InteractionId
source§fn eq(&self, other: &InteractionId) -> bool
fn eq(&self, other: &InteractionId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<u64> for InteractionId
impl PartialEq<u64> for InteractionId
source§impl PartialOrd<InteractionId> for InteractionId
impl PartialOrd<InteractionId> for InteractionId
source§fn partial_cmp(&self, other: &InteractionId) -> Option<Ordering>
fn partial_cmp(&self, other: &InteractionId) -> 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 InteractionId
impl Serialize for InteractionId
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 InteractionId
impl Eq for InteractionId
impl StructuralEq for InteractionId
impl StructuralPartialEq for InteractionId
Auto Trait Implementations§
impl RefUnwindSafe for InteractionId
impl Send for InteractionId
impl Sync for InteractionId
impl Unpin for InteractionId
impl UnwindSafe for InteractionId
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