Enum telegram_bot_ars::types::ChatRef
source · 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
source§impl PartialOrd<ChatRef> for ChatRef
impl PartialOrd<ChatRef> for ChatRef
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 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