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