Struct mostro_core::Rating
source · pub struct Rating {
pub total_reviews: u64,
pub total_rating: f64,
pub last_rating: u64,
pub max_rate: u64,
pub min_rate: u64,
}Expand description
We use this struct to create a user reputation
Fields§
§total_reviews: u64§total_rating: f64§last_rating: u64§max_rate: u64§min_rate: u64Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rating
impl<'de> Deserialize<'de> for Rating
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 RefUnwindSafe for Rating
impl Send for Rating
impl Sync for Rating
impl Unpin for Rating
impl UnwindSafe for Rating
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