pub enum TelegramTargetChat {
Id(i64),
Username(String),
}Expand description
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Variants§
Implementations§
Source§impl TargetChat
impl TargetChat
pub fn to_chat_id(&self) -> Cow<'_, str>
Trait Implementations§
Source§impl Clone for TargetChat
impl Clone for TargetChat
Source§fn clone(&self) -> TargetChat
fn clone(&self) -> TargetChat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetChat
impl Debug for TargetChat
Source§impl From<i64> for TargetChat
impl From<i64> for TargetChat
Source§impl FromStr for TargetChat
impl FromStr for TargetChat
Source§impl Hash for TargetChat
impl Hash for TargetChat
Source§impl Ord for TargetChat
impl Ord for TargetChat
Source§fn cmp(&self, other: &TargetChat) -> Ordering
fn cmp(&self, other: &TargetChat) -> Ordering
1.21.0 · 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 PartialEq for TargetChat
impl PartialEq for TargetChat
Source§impl PartialOrd for TargetChat
impl PartialOrd for TargetChat
impl Eq for TargetChat
impl StructuralPartialEq for TargetChat
Auto Trait Implementations§
impl Freeze for TargetChat
impl RefUnwindSafe for TargetChat
impl Send for TargetChat
impl Sync for TargetChat
impl Unpin for TargetChat
impl UnwindSafe for TargetChat
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