[][src]Enum telegram_bot::types::ChatRef

pub enum ChatRef {
    Id(ChatId),
    // some variants omitted
}

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Variants

Id(ChatId)

Implementations

impl ChatRef[src]

pub fn from_chat_id(chat_id: ChatId) -> ChatRef[src]

Trait Implementations

impl Clone for ChatRef[src]

impl Debug for ChatRef[src]

impl Display for ChatRef[src]

impl Eq for ChatRef[src]

impl Hash for ChatRef[src]

impl Ord for ChatRef[src]

impl PartialEq<ChatRef> for ChatRef[src]

impl PartialOrd<ChatRef> for ChatRef[src]

impl Serialize for ChatRef[src]

impl StructuralEq for ChatRef[src]

impl StructuralPartialEq for ChatRef[src]

impl ToChatRef for ChatRef[src]

Auto Trait Implementations

impl RefUnwindSafe for ChatRef[src]

impl Send for ChatRef[src]

impl Sync for ChatRef[src]

impl Unpin for ChatRef[src]

impl UnwindSafe for ChatRef[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<C> CanGetChat for C where
    C: ToChatRef
[src]

impl<C> CanGetChatAdministrators for C where
    C: ToChatRef
[src]

impl<C> CanGetChatMemberForChat for C where
    C: ToChatRef
[src]

impl<C> CanGetChatMembersCount for C where
    C: ToChatRef
[src]

impl<C> CanKickChatMemberForChat for C where
    C: ToChatRef
[src]

impl<C> CanLeaveChat for C where
    C: ToChatRef
[src]

impl<M> CanSendAudio for M where
    M: ToChatRef
[src]

impl<C> CanSendChatAction for C where
    C: ToChatRef
[src]

impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
    C: ToChatRef
[src]

impl<M> CanSendDocument for M where
    M: ToChatRef
[src]

impl<C> CanSendLocation for C where
    C: ToChatRef
[src]

impl<C> CanSendMessage for C where
    C: ToChatRef
[src]

impl<M> CanSendPhoto for M where
    M: ToChatRef
[src]

impl<C> CanSendPoll for C where
    C: ToChatRef
[src]

impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
    C: ToChatRef
[src]

impl<M> CanSendVideo for M where
    M: ToChatRef
[src]

impl<C> CanUnbanChatMemberForChat for C where
    C: ToChatRef
[src]

impl<C> CanUnpinMessage for C where
    C: ToChatRef
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]