pub struct DiscoveryBadge {Show 14 fields
pub label: Option<String>,
pub image: Option<Image>,
pub background_color: Option<i32>,
pub badge_container1: Option<DiscoveryBadgeLink>,
pub server_logs_cookie: Option<Vec<u8>>,
pub is_plus_one: Option<bool>,
pub aggregate_rating: Option<f32>,
pub user_star_rating: Option<i32>,
pub download_count: Option<String>,
pub download_units: Option<String>,
pub content_description: Option<String>,
pub player_badge: Option<PlayerBadge>,
pub family_age_range_badge: Option<Vec<u8>>,
pub family_category_badge: Option<Vec<u8>>,
}Fields§
§label: Option<String>§image: Option<Image>§background_color: Option<i32>§badge_container1: Option<DiscoveryBadgeLink>§is_plus_one: Option<bool>§aggregate_rating: Option<f32>§user_star_rating: Option<i32>§download_count: Option<String>§download_units: Option<String>§content_description: Option<String>§player_badge: Option<PlayerBadge>§family_age_range_badge: Option<Vec<u8>>§family_category_badge: Option<Vec<u8>>Implementations§
Source§impl DiscoveryBadge
impl DiscoveryBadge
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Returns the value of label, or the default value if label is unset.
Sourcepub fn background_color(&self) -> i32
pub fn background_color(&self) -> i32
Returns the value of background_color, or the default value if background_color is unset.
Returns the value of server_logs_cookie, or the default value if server_logs_cookie is unset.
Sourcepub fn is_plus_one(&self) -> bool
pub fn is_plus_one(&self) -> bool
Returns the value of is_plus_one, or the default value if is_plus_one is unset.
Sourcepub fn aggregate_rating(&self) -> f32
pub fn aggregate_rating(&self) -> f32
Returns the value of aggregate_rating, or the default value if aggregate_rating is unset.
Sourcepub fn user_star_rating(&self) -> i32
pub fn user_star_rating(&self) -> i32
Returns the value of user_star_rating, or the default value if user_star_rating is unset.
Sourcepub fn download_count(&self) -> &str
pub fn download_count(&self) -> &str
Returns the value of download_count, or the default value if download_count is unset.
Sourcepub fn download_units(&self) -> &str
pub fn download_units(&self) -> &str
Returns the value of download_units, or the default value if download_units is unset.
Sourcepub fn content_description(&self) -> &str
pub fn content_description(&self) -> &str
Returns the value of content_description, or the default value if content_description is unset.
Sourcepub fn family_age_range_badge(&self) -> &[u8] ⓘ
pub fn family_age_range_badge(&self) -> &[u8] ⓘ
Returns the value of family_age_range_badge, or the default value if family_age_range_badge is unset.
Sourcepub fn family_category_badge(&self) -> &[u8] ⓘ
pub fn family_category_badge(&self) -> &[u8] ⓘ
Returns the value of family_category_badge, or the default value if family_category_badge is unset.
Trait Implementations§
Source§impl Clone for DiscoveryBadge
impl Clone for DiscoveryBadge
Source§fn clone(&self) -> DiscoveryBadge
fn clone(&self) -> DiscoveryBadge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiscoveryBadge
impl Debug for DiscoveryBadge
Source§impl Default for DiscoveryBadge
impl Default for DiscoveryBadge
Source§impl Message for DiscoveryBadge
impl Message for DiscoveryBadge
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.