Struct discord_flows::model::id::TargetId
source · pub struct TargetId(pub u64);Tuple Fields§
§0: u64Implementations§
source§impl TargetId
impl TargetId
sourcepub fn to_user_id(self) -> UserId
pub fn to_user_id(self) -> UserId
sourcepub fn to_message_id(self) -> MessageId
pub fn to_message_id(self) -> MessageId
Trait Implementations§
source§impl<'de> Deserialize<'de> for TargetId
impl<'de> Deserialize<'de> for TargetId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TargetId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TargetId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for TargetId
impl Ord for TargetId
source§impl PartialEq<TargetId> for TargetId
impl PartialEq<TargetId> for TargetId
source§impl PartialOrd<TargetId> for TargetId
impl PartialOrd<TargetId> for TargetId
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 TargetId
impl Serialize for TargetId
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 TargetId
impl Eq for TargetId
impl StructuralEq for TargetId
impl StructuralPartialEq for TargetId
Auto Trait Implementations§
impl RefUnwindSafe for TargetId
impl Send for TargetId
impl Sync for TargetId
impl Unpin for TargetId
impl UnwindSafe for TargetId
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