Struct rust_tdlib::types::Supergroup
source · pub struct Supergroup { /* private fields */ }
Expand description
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers
Implementations§
source§impl Supergroup
impl Supergroup
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SupergroupBuilder
pub fn id(&self) -> i64
pub fn username(&self) -> &String
pub fn date(&self) -> i32
pub fn status(&self) -> &ChatMemberStatus
pub fn member_count(&self) -> i32
pub fn has_linked_chat(&self) -> bool
pub fn has_location(&self) -> bool
pub fn sign_messages(&self) -> bool
pub fn is_slow_mode_enabled(&self) -> bool
pub fn is_channel(&self) -> bool
pub fn is_broadcast_group(&self) -> bool
pub fn is_verified(&self) -> bool
pub fn restriction_reason(&self) -> &String
pub fn is_scam(&self) -> bool
pub fn is_fake(&self) -> bool
Trait Implementations§
source§impl AsRef<Supergroup> for Supergroup
impl AsRef<Supergroup> for Supergroup
source§fn as_ref(&self) -> &Supergroup
fn as_ref(&self) -> &Supergroup
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for Supergroup
impl Clone for Supergroup
source§fn clone(&self) -> Supergroup
fn clone(&self) -> Supergroup
Returns a copy 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 Supergroup
impl Debug for Supergroup
source§impl Default for Supergroup
impl Default for Supergroup
source§fn default() -> Supergroup
fn default() -> Supergroup
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Supergroup
impl<'de> Deserialize<'de> for Supergroup
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more