Enum rust_tdlib::types::ChatStatistics
source · pub enum ChatStatistics {
Channel(ChatStatisticsChannel),
Supergroup(ChatStatisticsSupergroup),
GetChatStatistics(GetChatStatistics),
// some variants omitted
}
Expand description
Contains a detailed statistics about a chat
Variants§
Channel(ChatStatisticsChannel)
A detailed statistics about a channel chat
Supergroup(ChatStatisticsSupergroup)
A detailed statistics about a supergroup chat
GetChatStatistics(GetChatStatistics)
Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true
Implementations§
Trait Implementations§
source§impl AsRef<ChatStatistics> for ChatStatistics
impl AsRef<ChatStatistics> for ChatStatistics
source§fn as_ref(&self) -> &ChatStatistics
fn as_ref(&self) -> &ChatStatistics
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ChatStatistics
impl Clone for ChatStatistics
source§fn clone(&self) -> ChatStatistics
fn clone(&self) -> ChatStatistics
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 ChatStatistics
impl Debug for ChatStatistics
source§impl Default for ChatStatistics
impl Default for ChatStatistics
source§fn default() -> ChatStatistics
fn default() -> ChatStatistics
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChatStatistics
impl<'de> Deserialize<'de> for ChatStatistics
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