pub struct Annotations {
Show 45 fields pub section_related: Option<SectionMetaData>, pub section_more_by: Option<SectionMetaData>, pub warning: Vec<Warning>, pub section_body_of_work: Option<SectionMetaData>, pub section_core_content: Option<SectionMetaData>, pub overlay_meta_data: Option<OverlayMetaData>, pub badge_for_creator: Vec<Badge>, pub info_badge: Vec<Badge>, pub annotation_link: Option<AnnotationLink>, pub section_cross_sell: Option<SectionMetaData>, pub section_related_item_type: Option<SectionMetaData>, pub promoted_doc: Vec<PromotedDoc>, pub offer_note: Option<String>, pub privacy_policy_url: Option<String>, pub suggestion_reasons: Option<SuggestionReasons>, pub optimal_device_class_warning: Option<Warning>, pub badge_container: Vec<BadgeContainer>, pub section_suggest_for_rating: Option<SectionMetaData>, pub section_purchase_cross_sell: Option<SectionMetaData>, pub overflow_link: Vec<OverflowLink>, pub attribution_html: Option<String>, pub purchase_history_details: Option<PurchaseHistoryDetails>, pub badge_for_legacy_rating: Option<Badge>, pub voucher_info: Vec<VoucherInfo>, pub section_featured_apps: Option<SectionMetaData>, pub details_page_cluster: Vec<SectionMetaData>, pub video_annotations: Option<VideoAnnotations>, pub section_purchase_related_topics: Option<SectionMetaData>, pub my_subscription_details: Option<MySubscriptionDetails>, pub my_reward_details: Option<MyRewardDetails>, pub feature_badge: Vec<Badge>, pub snippet: Option<Snippet>, pub downloads_label: Option<String>, pub badge_for_rating: Option<Badge>, pub category_info: Option<CategoryInfo>, pub reasons: Option<EditorReason>, pub top_chart_stream: Option<Stream>, pub category_name: Option<String>, pub chip: Vec<Chip>, pub display_badge: Vec<Badge>, pub live_stream_url: Option<String>, pub promotion_stream_url: Option<String>, pub overlay_meta_data_extra: Option<OverlayMetaData>, pub section_image: Option<SectionImage>, pub category_stream: Option<SubStream>,
}

Fields§

§section_related: Option<SectionMetaData>§section_more_by: Option<SectionMetaData>§warning: Vec<Warning>§section_body_of_work: Option<SectionMetaData>§section_core_content: Option<SectionMetaData>§overlay_meta_data: Option<OverlayMetaData>§badge_for_creator: Vec<Badge>§info_badge: Vec<Badge>§annotation_link: Option<AnnotationLink>§section_cross_sell: Option<SectionMetaData>§section_related_item_type: Option<SectionMetaData>§promoted_doc: Vec<PromotedDoc>§offer_note: Option<String>§privacy_policy_url: Option<String>§suggestion_reasons: Option<SuggestionReasons>§optimal_device_class_warning: Option<Warning>§badge_container: Vec<BadgeContainer>§section_suggest_for_rating: Option<SectionMetaData>§section_purchase_cross_sell: Option<SectionMetaData>§overflow_link: Vec<OverflowLink>§attribution_html: Option<String>§purchase_history_details: Option<PurchaseHistoryDetails>§badge_for_legacy_rating: Option<Badge>§voucher_info: Vec<VoucherInfo>§section_featured_apps: Option<SectionMetaData>§details_page_cluster: Vec<SectionMetaData>§video_annotations: Option<VideoAnnotations>§section_purchase_related_topics: Option<SectionMetaData>§my_subscription_details: Option<MySubscriptionDetails>§my_reward_details: Option<MyRewardDetails>§feature_badge: Vec<Badge>§snippet: Option<Snippet>§downloads_label: Option<String>§badge_for_rating: Option<Badge>§category_info: Option<CategoryInfo>§reasons: Option<EditorReason>§top_chart_stream: Option<Stream>§category_name: Option<String>§chip: Vec<Chip>§display_badge: Vec<Badge>§live_stream_url: Option<String>§promotion_stream_url: Option<String>§overlay_meta_data_extra: Option<OverlayMetaData>§section_image: Option<SectionImage>§category_stream: Option<SubStream>

Implementations§

source§

impl Annotations

source

pub fn offer_note(&self) -> &str

Returns the value of offer_note, or the default value if offer_note is unset.

source

pub fn privacy_policy_url(&self) -> &str

Returns the value of privacy_policy_url, or the default value if privacy_policy_url is unset.

source

pub fn attribution_html(&self) -> &str

Returns the value of attribution_html, or the default value if attribution_html is unset.

source

pub fn downloads_label(&self) -> &str

Returns the value of downloads_label, or the default value if downloads_label is unset.

source

pub fn category_name(&self) -> &str

Returns the value of category_name, or the default value if category_name is unset.

source

pub fn live_stream_url(&self) -> &str

Returns the value of live_stream_url, or the default value if live_stream_url is unset.

source

pub fn promotion_stream_url(&self) -> &str

Returns the value of promotion_stream_url, or the default value if promotion_stream_url is unset.

Trait Implementations§

source§

impl Clone for Annotations

source§

fn clone(&self) -> Annotations

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Annotations

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Annotations

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for Annotations

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

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.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for Annotations

source§

fn eq(&self, other: &Annotations) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Annotations

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.