Struct googleplay_protobuf::googleplay::AggregateRating
source · [−]pub struct AggregateRating {
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>,
}
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>
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Clone for AggregateRating
impl Clone for AggregateRating
sourcefn clone(&self) -> AggregateRating
fn clone(&self) -> AggregateRating
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AggregateRating
impl Debug for AggregateRating
sourceimpl Default for AggregateRating
impl Default for AggregateRating
sourceimpl Message for AggregateRating
impl Message for AggregateRating
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<AggregateRating> for AggregateRating
impl PartialEq<AggregateRating> for AggregateRating
sourcefn eq(&self, other: &AggregateRating) -> bool
fn eq(&self, other: &AggregateRating) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AggregateRating) -> bool
fn ne(&self, other: &AggregateRating) -> bool
This method tests for !=
.
impl StructuralPartialEq for AggregateRating
Auto Trait Implementations
impl RefUnwindSafe for AggregateRating
impl Send for AggregateRating
impl Sync for AggregateRating
impl Unpin for AggregateRating
impl UnwindSafe for AggregateRating
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more