pub struct TopicStats {
pub view_count: u64,
pub reply_count: u64,
pub like_count: i64,
pub bookmark_count: u64,
pub unique_viewers: u64,
pub last_reply_at: Option<SystemTime>,
}Expand description
Topic statistics
Fields§
§view_count: u64§reply_count: u64§like_count: i64§bookmark_count: u64§unique_viewers: u64§last_reply_at: Option<SystemTime>Trait Implementations§
Source§impl Clone for TopicStats
impl Clone for TopicStats
Source§fn clone(&self) -> TopicStats
fn clone(&self) -> TopicStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopicStats
impl Debug for TopicStats
Source§impl Default for TopicStats
impl Default for TopicStats
Source§fn default() -> TopicStats
fn default() -> TopicStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TopicStats
impl<'de> Deserialize<'de> for TopicStats
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 TopicStats
impl RefUnwindSafe for TopicStats
impl Send for TopicStats
impl Sync for TopicStats
impl Unpin for TopicStats
impl UnwindSafe for TopicStats
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