pub struct SubjectSmallRating {
pub total: u32,
pub count: RatingCount,
pub score: f64,
}Expand description
精简的条目评分信息结构体
用于列表场景中的评分展示
Fields§
§total: u32总评分人数
count: RatingCount各评分等级的投票数量
score: f64平均分数
Trait Implementations§
Source§impl Clone for SubjectSmallRating
impl Clone for SubjectSmallRating
Source§fn clone(&self) -> SubjectSmallRating
fn clone(&self) -> SubjectSmallRating
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 SubjectSmallRating
impl Debug for SubjectSmallRating
Source§impl<'de> Deserialize<'de> for SubjectSmallRating
impl<'de> Deserialize<'de> for SubjectSmallRating
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 SubjectSmallRating
impl RefUnwindSafe for SubjectSmallRating
impl Send for SubjectSmallRating
impl Sync for SubjectSmallRating
impl Unpin for SubjectSmallRating
impl UnwindSafe for SubjectSmallRating
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