pub enum Recipient {
Id(ChatId),
ChannelUsername(String),
}Expand description
A unique identifier for the target chat or username of the target channel
(in the format @channelusername).
Variants§
Id(ChatId)
A chat identifier.
ChannelUsername(String)
A channel username (in the format @channelusername).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Recipient
impl<'de> Deserialize<'de> for Recipient
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 PartialEq<Recipient> for Recipient
impl PartialEq<Recipient> for Recipient
impl Eq for Recipient
impl StructuralEq for Recipient
impl StructuralPartialEq for Recipient
Auto Trait Implementations§
impl RefUnwindSafe for Recipient
impl Send for Recipient
impl Sync for Recipient
impl Unpin for Recipient
impl UnwindSafe for Recipient
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