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