pub enum ChatRef {
Id(ChatId),
// some variants omitted
}Expand description
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Variants§
Implementations§
Trait Implementations§
Source§impl Ord for ChatRef
impl Ord for ChatRef
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 ChatRef
impl PartialOrd for ChatRef
Source§impl Serialize for ChatRef
impl Serialize for ChatRef
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 Eq for ChatRef
impl StructuralPartialEq for ChatRef
Auto Trait Implementations§
impl Freeze for ChatRef
impl RefUnwindSafe for ChatRef
impl Send for ChatRef
impl Sync for ChatRef
impl Unpin for ChatRef
impl UnsafeUnpin for ChatRef
impl UnwindSafe for ChatRef
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