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 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 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
Source§impl<C> CanExportChatInviteLink for Cwhere
C: ToChatRef,
impl<C> CanExportChatInviteLink for Cwhere
C: ToChatRef,
fn export_invite_link(&self) -> ExportChatInviteLink
Source§impl<C> CanGetChatAdministrators for Cwhere
C: ToChatRef,
impl<C> CanGetChatAdministrators for Cwhere
C: ToChatRef,
fn get_administrators(&self) -> GetChatAdministrators
Source§impl<C> CanGetChatMemberForChat for Cwhere
C: ToChatRef,
impl<C> CanGetChatMemberForChat for Cwhere
C: ToChatRef,
fn get_member<O>(&self, other: O) -> GetChatMemberwhere
O: ToUserId,
Source§impl<C> CanGetChatMembersCount for Cwhere
C: ToChatRef,
impl<C> CanGetChatMembersCount for Cwhere
C: ToChatRef,
fn get_members_count(&self) -> GetChatMembersCount
Source§impl<C> CanKickChatMemberForChat for Cwhere
C: ToChatRef,
impl<C> CanKickChatMemberForChat for Cwhere
C: ToChatRef,
fn kick<O>(&self, other: O) -> KickChatMemberwhere
O: ToUserId,
Source§impl<M> CanSendAudio for Mwhere
M: ToChatRef,
impl<M> CanSendAudio for Mwhere
M: ToChatRef,
Source§impl<C> CanSendChatAction for Cwhere
C: ToChatRef,
impl<C> CanSendChatAction for Cwhere
C: ToChatRef,
fn chat_action(&self, action: ChatAction) -> SendChatAction
Source§impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for Cwhere
C: ToChatRef,
impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for Cwhere
C: ToChatRef,
Source§impl<M> CanSendDocument for Mwhere
M: ToChatRef,
impl<M> CanSendDocument for Mwhere
M: ToChatRef,
Source§impl<C> CanSendLocation for Cwhere
C: ToChatRef,
impl<C> CanSendLocation for Cwhere
C: ToChatRef,
Source§impl<C> CanSendMessage for Cwhere
C: ToChatRef,
impl<C> CanSendMessage for Cwhere
C: ToChatRef,
Source§impl<M> CanSendPhoto for Mwhere
M: ToChatRef,
impl<M> CanSendPhoto for Mwhere
M: ToChatRef,
Source§impl<C> CanSendPoll for Cwhere
C: ToChatRef,
impl<C> CanSendPoll for Cwhere
C: ToChatRef,
Source§impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for Cwhere
C: ToChatRef,
impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for Cwhere
C: ToChatRef,
Source§impl<M> CanSendVideo for Mwhere
M: ToChatRef,
impl<M> CanSendVideo for Mwhere
M: ToChatRef,
Source§impl<C> CanUnbanChatMemberForChat for Cwhere
C: ToChatRef,
impl<C> CanUnbanChatMemberForChat for Cwhere
C: ToChatRef,
fn unban<O>(&self, other: O) -> UnbanChatMemberwhere
O: ToUserId,
Source§impl<C> CanUnpinMessage for Cwhere
C: ToChatRef,
impl<C> CanUnpinMessage for Cwhere
C: ToChatRef,
fn unpin_message(&self) -> UnpinChatMessage
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.