Struct googleplay_protobuf::googleplay::Document
source · pub struct Document {Show 21 fields
pub doc_id: Option<DocId>,
pub fetch_doc_id: Option<DocId>,
pub sample_doc_id: Option<DocId>,
pub title: Option<String>,
pub url: Option<String>,
pub snippet: Vec<String>,
pub price_deprecated: Option<Offer>,
pub availability: Option<Availability>,
pub image: Vec<Image>,
pub child: Vec<Document>,
pub aggregate_rating: Option<AggregateRating>,
pub offer: Vec<Offer>,
pub translated_snippet: Vec<TranslatedText>,
pub document_variant: Vec<DocumentVariant>,
pub category_id: Vec<String>,
pub decoration: Vec<Document>,
pub parent: Vec<Document>,
pub privacy_policy_url: Option<String>,
pub consumption_url: Option<String>,
pub estimated_num_children: Option<i32>,
pub subtitle: Option<String>,
}
Fields§
§doc_id: Option<DocId>
§fetch_doc_id: Option<DocId>
§sample_doc_id: Option<DocId>
§title: Option<String>
§url: Option<String>
§snippet: Vec<String>
§price_deprecated: Option<Offer>
§availability: Option<Availability>
§image: Vec<Image>
§child: Vec<Document>
§aggregate_rating: Option<AggregateRating>
§offer: Vec<Offer>
§translated_snippet: Vec<TranslatedText>
§document_variant: Vec<DocumentVariant>
§category_id: Vec<String>
§decoration: Vec<Document>
§parent: Vec<Document>
§privacy_policy_url: Option<String>
§consumption_url: Option<String>
§estimated_num_children: Option<i32>
§subtitle: Option<String>
Implementations§
source§impl Document
impl Document
sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title
, or the default value if title
is unset.
sourcepub fn privacy_policy_url(&self) -> &str
pub fn privacy_policy_url(&self) -> &str
Returns the value of privacy_policy_url
, or the default value if privacy_policy_url
is unset.
sourcepub fn consumption_url(&self) -> &str
pub fn consumption_url(&self) -> &str
Returns the value of consumption_url
, or the default value if consumption_url
is unset.
sourcepub fn estimated_num_children(&self) -> i32
pub fn estimated_num_children(&self) -> i32
Returns the value of estimated_num_children
, or the default value if estimated_num_children
is unset.
Trait Implementations§
source§impl Message for Document
impl Message for Document
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Document
impl PartialEq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more