Struct letterboxd::RatingsHistogramBar
source · pub struct RatingsHistogramBar {
pub rating: f32,
pub normalized_weight: f32,
pub count: usize,
}
Fields§
§rating: f32
The rating increment between 0.5 and 5.0.
normalized_weight: f32
The height of this rating increment’s entry in a unit-height histogram, normalized between 0.0 and 1.0. The increment(s) with the highest number of ratings will always return 1.0 (unless there are no ratings for the film).
count: usize
The number of ratings made at this increment.
Trait Implementations§
source§impl Clone for RatingsHistogramBar
impl Clone for RatingsHistogramBar
source§fn clone(&self) -> RatingsHistogramBar
fn clone(&self) -> RatingsHistogramBar
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 RatingsHistogramBar
impl Debug for RatingsHistogramBar
source§impl<'de> Deserialize<'de> for RatingsHistogramBar
impl<'de> Deserialize<'de> for RatingsHistogramBar
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 RatingsHistogramBar
impl RefUnwindSafe for RatingsHistogramBar
impl Send for RatingsHistogramBar
impl Sync for RatingsHistogramBar
impl Unpin for RatingsHistogramBar
impl UnwindSafe for RatingsHistogramBar
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