pub struct ChannelStats {
pub total_messages: u64,
pub messages_today: f64,
pub avg_messages_per_day: f64,
pub most_active_member: Option<String>,
pub key_rotations: u64,
pub last_key_rotation: Option<SystemTime>,
}Expand description
Channel statistics
Fieldsยง
ยงtotal_messages: u64Total messages sent
messages_today: f64Messages today
avg_messages_per_day: f64Average messages per day
most_active_member: Option<String>Most active member
key_rotations: u64Key rotations performed
last_key_rotation: Option<SystemTime>Last key rotation
Trait Implementationsยง
Sourceยงimpl Clone for ChannelStats
impl Clone for ChannelStats
Sourceยงfn clone(&self) -> ChannelStats
fn clone(&self) -> ChannelStats
Returns a duplicate 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 ChannelStats
impl Debug for ChannelStats
Sourceยงimpl Default for ChannelStats
impl Default for ChannelStats
Sourceยงimpl<'de> Deserialize<'de> for ChannelStats
impl<'de> Deserialize<'de> for ChannelStats
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 ChannelStats
impl RefUnwindSafe for ChannelStats
impl Send for ChannelStats
impl Sync for ChannelStats
impl Unpin for ChannelStats
impl UnsafeUnpin for ChannelStats
impl UnwindSafe for ChannelStats
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