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