pub struct CollectionItemRatingBrief {
pub user_rating: Option<f64>,
pub average: f64,
pub bayesian_average: f64,
}Expand description
The 0-10 rating that the user gave to this item. Also includes the total number of users that have rated it, as well as the averages.
Fields§
§user_rating: Option<f64>The 0-10 rating that the user gave this item.
average: f64The mean average rating for this item.
bayesian_average: f64The bayesian average rating for this item. Will be set to 0 if the item does not yet have a bayesian rating.
Trait Implementations§
Source§impl Clone for CollectionItemRatingBrief
impl Clone for CollectionItemRatingBrief
Source§fn clone(&self) -> CollectionItemRatingBrief
fn clone(&self) -> CollectionItemRatingBrief
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 CollectionItemRatingBrief
impl Debug for CollectionItemRatingBrief
Source§impl<'de> Deserialize<'de> for CollectionItemRatingBrief
impl<'de> Deserialize<'de> for CollectionItemRatingBrief
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CollectionItemRatingBrief
Auto Trait Implementations§
impl Freeze for CollectionItemRatingBrief
impl RefUnwindSafe for CollectionItemRatingBrief
impl Send for CollectionItemRatingBrief
impl Sync for CollectionItemRatingBrief
impl Unpin for CollectionItemRatingBrief
impl UnwindSafe for CollectionItemRatingBrief
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