pub struct AggregateRating {Show 16 fields
pub type: Option<i32>,
pub star_rating: Option<f32>,
pub ratings_count: Option<u64>,
pub one_star_ratings: Option<u64>,
pub two_star_ratings: Option<u64>,
pub three_star_ratings: Option<u64>,
pub four_star_ratings: Option<u64>,
pub five_star_ratings: Option<u64>,
pub thumbs_up_count: Option<u64>,
pub thumbs_down_count: Option<u64>,
pub comment_count: Option<u64>,
pub bayesian_mean_rating: Option<f64>,
pub tip: Vec<Tip>,
pub rating_label: Option<String>,
pub rating_count_label_abbreviated: Option<String>,
pub rating_count_label: Option<String>,
}Fields§
§type: Option<i32>§star_rating: Option<f32>§ratings_count: Option<u64>§one_star_ratings: Option<u64>§two_star_ratings: Option<u64>§three_star_ratings: Option<u64>§four_star_ratings: Option<u64>§five_star_ratings: Option<u64>§thumbs_up_count: Option<u64>§thumbs_down_count: Option<u64>§comment_count: Option<u64>§bayesian_mean_rating: Option<f64>§tip: Vec<Tip>§rating_label: Option<String>§rating_count_label_abbreviated: Option<String>§rating_count_label: Option<String>Implementations§
Source§impl AggregateRating
impl AggregateRating
Sourcepub fn star_rating(&self) -> f32
pub fn star_rating(&self) -> f32
Returns the value of star_rating, or the default value if star_rating is unset.
Sourcepub fn ratings_count(&self) -> u64
pub fn ratings_count(&self) -> u64
Returns the value of ratings_count, or the default value if ratings_count is unset.
Sourcepub fn one_star_ratings(&self) -> u64
pub fn one_star_ratings(&self) -> u64
Returns the value of one_star_ratings, or the default value if one_star_ratings is unset.
Sourcepub fn two_star_ratings(&self) -> u64
pub fn two_star_ratings(&self) -> u64
Returns the value of two_star_ratings, or the default value if two_star_ratings is unset.
Sourcepub fn three_star_ratings(&self) -> u64
pub fn three_star_ratings(&self) -> u64
Returns the value of three_star_ratings, or the default value if three_star_ratings is unset.
Sourcepub fn four_star_ratings(&self) -> u64
pub fn four_star_ratings(&self) -> u64
Returns the value of four_star_ratings, or the default value if four_star_ratings is unset.
Sourcepub fn five_star_ratings(&self) -> u64
pub fn five_star_ratings(&self) -> u64
Returns the value of five_star_ratings, or the default value if five_star_ratings is unset.
Sourcepub fn thumbs_up_count(&self) -> u64
pub fn thumbs_up_count(&self) -> u64
Returns the value of thumbs_up_count, or the default value if thumbs_up_count is unset.
Sourcepub fn thumbs_down_count(&self) -> u64
pub fn thumbs_down_count(&self) -> u64
Returns the value of thumbs_down_count, or the default value if thumbs_down_count is unset.
Sourcepub fn comment_count(&self) -> u64
pub fn comment_count(&self) -> u64
Returns the value of comment_count, or the default value if comment_count is unset.
Sourcepub fn bayesian_mean_rating(&self) -> f64
pub fn bayesian_mean_rating(&self) -> f64
Returns the value of bayesian_mean_rating, or the default value if bayesian_mean_rating is unset.
Sourcepub fn rating_label(&self) -> &str
pub fn rating_label(&self) -> &str
Returns the value of rating_label, or the default value if rating_label is unset.
Sourcepub fn rating_count_label_abbreviated(&self) -> &str
pub fn rating_count_label_abbreviated(&self) -> &str
Returns the value of rating_count_label_abbreviated, or the default value if rating_count_label_abbreviated is unset.
Sourcepub fn rating_count_label(&self) -> &str
pub fn rating_count_label(&self) -> &str
Returns the value of rating_count_label, or the default value if rating_count_label is unset.
Trait Implementations§
Source§impl Clone for AggregateRating
impl Clone for AggregateRating
Source§fn clone(&self) -> AggregateRating
fn clone(&self) -> AggregateRating
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AggregateRating
impl Debug for AggregateRating
Source§impl Default for AggregateRating
impl Default for AggregateRating
Source§impl Message for AggregateRating
impl Message for AggregateRating
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.