Struct rust_tdlib::types::SupergroupFullInfo
source · pub struct SupergroupFullInfo { /* private fields */ }
Expand description
Contains full information about a supergroup or channel
Implementations§
source§impl SupergroupFullInfo
impl SupergroupFullInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SupergroupFullInfoBuilder
pub fn photo(&self) -> &Option<ChatPhoto>
pub fn description(&self) -> &String
pub fn member_count(&self) -> i32
pub fn administrator_count(&self) -> i32
pub fn restricted_count(&self) -> i32
pub fn banned_count(&self) -> i32
pub fn linked_chat_id(&self) -> i64
pub fn slow_mode_delay(&self) -> i32
pub fn slow_mode_delay_expires_in(&self) -> f32
pub fn can_get_members(&self) -> bool
pub fn can_set_username(&self) -> bool
pub fn can_set_sticker_set(&self) -> bool
pub fn can_set_location(&self) -> bool
pub fn can_get_statistics(&self) -> bool
pub fn is_all_history_available(&self) -> bool
pub fn sticker_set_id(&self) -> i64
pub fn location(&self) -> &Option<ChatLocation>
pub fn invite_link(&self) -> &Option<ChatInviteLink>
pub fn bot_commands(&self) -> &Vec<BotCommands>
pub fn upgraded_from_basic_group_id(&self) -> i64
pub fn upgraded_from_max_message_id(&self) -> i64
Trait Implementations§
source§impl AsRef<SupergroupFullInfo> for SupergroupFullInfo
impl AsRef<SupergroupFullInfo> for SupergroupFullInfo
source§fn as_ref(&self) -> &SupergroupFullInfo
fn as_ref(&self) -> &SupergroupFullInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SupergroupFullInfo
impl Clone for SupergroupFullInfo
source§fn clone(&self) -> SupergroupFullInfo
fn clone(&self) -> SupergroupFullInfo
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 SupergroupFullInfo
impl Debug for SupergroupFullInfo
source§impl Default for SupergroupFullInfo
impl Default for SupergroupFullInfo
source§fn default() -> SupergroupFullInfo
fn default() -> SupergroupFullInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SupergroupFullInfo
impl<'de> Deserialize<'de> for SupergroupFullInfo
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