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
Auto Trait Implementations§
impl Freeze for ChatStatistics
impl RefUnwindSafe for ChatStatistics
impl Send for ChatStatistics
impl Sync for ChatStatistics
impl Unpin for ChatStatistics
impl UnwindSafe for ChatStatistics
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