pub struct ChatId(pub i64);
Expand description
Identifier of a chat.
Note that “a chat” here means any of group, supergroup, channel or user PM.
Tuple Fields§
§0: i64
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChatId
impl<'de> Deserialize<'de> for ChatId
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ChatId, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ChatId
impl Ord for ChatId
source§impl PartialEq<ChatId> for ChatId
impl PartialEq<ChatId> for ChatId
source§impl PartialOrd<ChatId> for ChatId
impl PartialOrd<ChatId> for ChatId
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 ChatId
impl Serialize for ChatId
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 ChatId
impl Eq for ChatId
impl StructuralEq for ChatId
impl StructuralPartialEq for ChatId
Auto Trait Implementations§
impl RefUnwindSafe for ChatId
impl Send for ChatId
impl Sync for ChatId
impl Unpin for ChatId
impl UnwindSafe for ChatId
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.