pub struct Group {
pub id: GroupId,
pub title: String,
pub all_members_are_administrators: bool,
pub invite_link: Option<String>,
}
Expand description
This object represents a group.
Fields§
§id: GroupId
Unique identifier for this chat.
title: String
Title, for supergroups, channels and group chats.
all_members_are_administrators: bool
True if a group has ‘All Members Are Admins’ enabled.
invite_link: Option<String>
Invite link for this group, specific to this bot. You can generate a new invite link by using the export_invite_link method.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Group, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Group, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Group
impl Ord for Group
Source§impl PartialOrd for Group
impl PartialOrd for Group
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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.