pub struct MangaRating {
pub average: Option<f32>,
pub bayesian: Option<f32>,
pub distribution: RatingsDistribution,
}
Fields§
§average: Option<f32>
Average rating of distributed votes.
Ratings values with no votes are not included in the calculation.
Will be None
if no ratings calculations have been done.
bayesian: Option<f32>
§distribution: RatingsDistribution
Ordered distribution of ratings from 1 to 10.
Array indices correspond to the rating value.
Each element corresponds to the number of users that have given that rating.
Trait Implementations§
Source§impl Clone for MangaRating
impl Clone for MangaRating
Source§fn clone(&self) -> MangaRating
fn clone(&self) -> MangaRating
Returns a copy 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 MangaRating
impl Debug for MangaRating
Source§impl<'de> Deserialize<'de> for MangaRating
impl<'de> Deserialize<'de> for MangaRating
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MangaRating, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MangaRating, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for MangaRating
Auto Trait Implementations§
impl Freeze for MangaRating
impl RefUnwindSafe for MangaRating
impl Send for MangaRating
impl Sync for MangaRating
impl Unpin for MangaRating
impl UnwindSafe for MangaRating
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