Struct discord_flows::model::ChannelId
source · pub struct ChannelId(pub u64);
Expand description
An identifier for a Channel
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChannelId
impl<'de> Deserialize<'de> for ChannelId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ChannelId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a GuildChannel> for ChannelId
impl<'a> From<&'a GuildChannel> for ChannelId
source§fn from(public_channel: &GuildChannel) -> ChannelId
fn from(public_channel: &GuildChannel) -> ChannelId
Gets the Id of a guild channel.
source§impl<'a> From<&'a PrivateChannel> for ChannelId
impl<'a> From<&'a PrivateChannel> for ChannelId
source§fn from(private_channel: &PrivateChannel) -> ChannelId
fn from(private_channel: &PrivateChannel) -> ChannelId
Gets the Id of a private channel.
source§impl From<GuildChannel> for ChannelId
impl From<GuildChannel> for ChannelId
source§fn from(public_channel: GuildChannel) -> ChannelId
fn from(public_channel: GuildChannel) -> ChannelId
Gets the Id of a guild channel.
source§impl From<PrivateChannel> for ChannelId
impl From<PrivateChannel> for ChannelId
source§fn from(private_channel: PrivateChannel) -> ChannelId
fn from(private_channel: PrivateChannel) -> ChannelId
Gets the Id of a private channel.
source§impl Ord for ChannelId
impl Ord for ChannelId
source§impl PartialEq<ChannelId> for ChannelId
impl PartialEq<ChannelId> for ChannelId
source§impl PartialOrd<ChannelId> for ChannelId
impl PartialOrd<ChannelId> for ChannelId
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 ChannelId
impl Serialize for ChannelId
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 ChannelId
impl Eq for ChannelId
impl StructuralEq for ChannelId
impl StructuralPartialEq for ChannelId
Auto Trait Implementations§
impl RefUnwindSafe for ChannelId
impl Send for ChannelId
impl Sync for ChannelId
impl Unpin for ChannelId
impl UnwindSafe for ChannelId
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