pub struct ChatId(/* private fields */);Expand description
Unique chat identifier.
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 From<SupergroupId> for ChatId
impl From<SupergroupId> for ChatId
Source§fn from(c: SupergroupId) -> ChatId
fn from(c: SupergroupId) -> ChatId
Converts to this type from the input type.
Source§impl Ord for ChatId
impl Ord for ChatId
1.21.0 (const: unstable) · 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 PartialOrd for ChatId
impl PartialOrd for ChatId
Source§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 StructuralPartialEq for ChatId
Auto Trait Implementations§
impl Freeze for ChatId
impl RefUnwindSafe for ChatId
impl Send for ChatId
impl Sync for ChatId
impl Unpin for ChatId
impl UnsafeUnpin 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