Struct googleplay_protobuf::googleplay::preloads_response::Preload
source · pub struct Preload {
pub doc_id: Option<DocId>,
pub version_code: Option<i32>,
pub title: Option<String>,
pub icon: Option<Image>,
pub delivery_token: Option<String>,
pub install_location: Option<i32>,
pub size: Option<i64>,
}
Fields§
§doc_id: Option<DocId>
§version_code: Option<i32>
§title: Option<String>
§icon: Option<Image>
§delivery_token: Option<String>
§install_location: Option<i32>
§size: Option<i64>
Implementations§
source§impl Preload
impl Preload
sourcepub fn version_code(&self) -> i32
pub fn version_code(&self) -> i32
Returns the value of version_code
, or the default value if version_code
is unset.
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 delivery_token(&self) -> &str
pub fn delivery_token(&self) -> &str
Returns the value of delivery_token
, or the default value if delivery_token
is unset.
sourcepub fn install_location(&self) -> i32
pub fn install_location(&self) -> i32
Returns the value of install_location
, or the default value if install_location
is unset.
Trait Implementations§
source§impl Message for Preload
impl Message for Preload
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 Preload
impl PartialEq for Preload
impl StructuralPartialEq for Preload
Auto Trait Implementations§
impl Freeze for Preload
impl RefUnwindSafe for Preload
impl Send for Preload
impl Sync for Preload
impl Unpin for Preload
impl UnwindSafe for Preload
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