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
sourceimpl 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
sourceimpl AsRef<Supergroup> for Supergroup
impl AsRef<Supergroup> for Supergroup
sourcefn as_ref(&self) -> &Supergroup
fn as_ref(&self) -> &Supergroup
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for Supergroup
impl Clone for Supergroup
sourcefn clone(&self) -> Supergroup
fn clone(&self) -> Supergroup
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Supergroup
impl Debug for Supergroup
sourceimpl Default for Supergroup
impl Default for Supergroup
sourcefn default() -> Supergroup
fn default() -> Supergroup
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Supergroup
impl<'de> Deserialize<'de> for Supergroup
sourcefn 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
sourceimpl Serialize for Supergroup
impl Serialize for Supergroup
Auto Trait Implementations
impl RefUnwindSafe for Supergroup
impl Send for Supergroup
impl Sync for Supergroup
impl Unpin for Supergroup
impl UnwindSafe for Supergroup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more