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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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 moreimpl 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<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