Struct googleplay_protobuf::googleplay::AggregateRating
source · 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for AggregateRating
impl PartialEq for AggregateRating
source§fn eq(&self, other: &AggregateRating) -> bool
fn eq(&self, other: &AggregateRating) -> bool
self
and other
values to be equal, and is used
by ==
.