pub struct RatingsDistribution {
pub r1: u32,
pub r2: u32,
pub r3: u32,
pub r4: u32,
pub r5: u32,
pub r6: u32,
pub r7: u32,
pub r8: u32,
pub r9: u32,
pub r10: u32,
}
Expand description
Distribution of ratings from 1 to 10.
Because Rust identifies may not begin with a number, the fields are prefixed with an arbitrary “r” to denote “rating”.
Fields§
§r1: u32
§r2: u32
§r3: u32
§r4: u32
§r5: u32
§r6: u32
§r7: u32
§r8: u32
§r9: u32
§r10: u32
Trait Implementations§
Source§impl Clone for RatingsDistribution
impl Clone for RatingsDistribution
Source§fn clone(&self) -> RatingsDistribution
fn clone(&self) -> RatingsDistribution
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 RatingsDistribution
impl Debug for RatingsDistribution
Source§impl Default for RatingsDistribution
impl Default for RatingsDistribution
Source§fn default() -> RatingsDistribution
fn default() -> RatingsDistribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RatingsDistribution
impl<'de> Deserialize<'de> for RatingsDistribution
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
impl Copy for RatingsDistribution
Auto Trait Implementations§
impl Freeze for RatingsDistribution
impl RefUnwindSafe for RatingsDistribution
impl Send for RatingsDistribution
impl Sync for RatingsDistribution
impl Unpin for RatingsDistribution
impl UnwindSafe for RatingsDistribution
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