pub struct ModuleStat {
pub coin: Option<StatData>,
pub comment: StatData,
pub favorite: Option<StatData>,
pub forward: StatData,
pub like: StatData,
}Expand description
统计模块 √
Fields§
§coin: Option<StatData>硬币数据,仅图文接口
comment: StatData评论数据
favorite: Option<StatData>收藏数据,仅图文接口
forward: StatData转发数据
like: StatData点赞数据
Trait Implementations§
Source§impl Clone for ModuleStat
impl Clone for ModuleStat
Source§fn clone(&self) -> ModuleStat
fn clone(&self) -> ModuleStat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModuleStat
impl Debug for ModuleStat
Source§impl Default for ModuleStat
impl Default for ModuleStat
Source§fn default() -> ModuleStat
fn default() -> ModuleStat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleStat
impl<'de> Deserialize<'de> for ModuleStat
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
Source§impl PartialEq for ModuleStat
impl PartialEq for ModuleStat
Source§fn eq(&self, other: &ModuleStat) -> bool
fn eq(&self, other: &ModuleStat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModuleStat
impl Serialize for ModuleStat
impl StructuralPartialEq for ModuleStat
Auto Trait Implementations§
impl Freeze for ModuleStat
impl RefUnwindSafe for ModuleStat
impl Send for ModuleStat
impl Sync for ModuleStat
impl Unpin for ModuleStat
impl UnsafeUnpin for ModuleStat
impl UnwindSafe for ModuleStat
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