pub struct MerchantApiRating {
pub rating_type: Option<String>,
pub value: Option<f64>,
pub votes_count: Option<i64>,
pub rating_max: Option<i64>,
}Expand description
Rating information attached to products, sellers and reviews.
Fields§
§rating_type: Option<String>Rating scale type (e.g. Max5).
value: Option<f64>Rating value on the rating_type scale.
votes_count: Option<i64>Number of votes the rating is based on.
rating_max: Option<i64>Maximum possible rating value (e.g. 5).
Trait Implementations§
Source§impl Clone for MerchantApiRating
impl Clone for MerchantApiRating
Source§impl Debug for MerchantApiRating
impl Debug for MerchantApiRating
Source§impl Default for MerchantApiRating
impl Default for MerchantApiRating
Source§impl<'de> Deserialize<'de> for MerchantApiRating
impl<'de> Deserialize<'de> for MerchantApiRating
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 MerchantApiRating
impl RefUnwindSafe for MerchantApiRating
impl Send for MerchantApiRating
impl Sync for MerchantApiRating
impl Unpin for MerchantApiRating
impl UnsafeUnpin for MerchantApiRating
impl UnwindSafe for MerchantApiRating
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