pub struct Supergroup {
pub id: SupergroupId,
pub title: String,
pub username: Option<String>,
pub invite_link: Option<String>,
}Expand description
This object represents a supergroup.
Fields§
§id: SupergroupIdUnique identifier for this chat.
title: StringTitle, for supergroups, channels and group chats.
username: Option<String>Username for supergroup.
invite_link: Option<String>Invite link for this supergroup, specific to this bot. You can generate a new invite link by using the export_invite_link method.
Trait Implementations§
Source§impl Clone for Supergroup
impl Clone for Supergroup
Source§fn clone(&self) -> Supergroup
fn clone(&self) -> Supergroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Supergroup
impl Debug for Supergroup
Source§impl<'de> Deserialize<'de> for Supergroup
impl<'de> Deserialize<'de> for Supergroup
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Supergroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Supergroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for Supergroup
impl Hash for Supergroup
Source§impl Ord for Supergroup
impl Ord for Supergroup
Source§fn cmp(&self, other: &Supergroup) -> Ordering
fn cmp(&self, other: &Supergroup) -> Ordering
1.21.0 (const: unstable) · 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 Supergroup
impl PartialEq for Supergroup
Source§fn eq(&self, other: &Supergroup) -> bool
fn eq(&self, other: &Supergroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Supergroup
impl PartialOrd for Supergroup
Source§impl ToChatRef for Supergroup
impl ToChatRef for Supergroup
fn to_chat_ref(&self) -> ChatRef
impl Eq for Supergroup
impl StructuralPartialEq for Supergroup
Auto Trait Implementations§
impl Freeze for Supergroup
impl RefUnwindSafe for Supergroup
impl Send for Supergroup
impl Sync for Supergroup
impl Unpin for Supergroup
impl UnsafeUnpin for Supergroup
impl UnwindSafe for Supergroup
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