Struct googleplay_protobuf::googleplay::Image
source · [−]pub struct Image {
pub image_type: Option<i32>,
pub dimension: Option<Dimension>,
pub image_url: Option<String>,
pub alt_text_localized: Option<String>,
pub secure_url: Option<String>,
pub position_in_sequence: Option<i32>,
pub supports_fife_url_options: Option<bool>,
pub citation: Option<Citation>,
pub color: Option<String>,
pub screenshot_set_number: Option<i32>,
}
Fields
image_type: Option<i32>
dimension: Option<Dimension>
image_url: Option<String>
alt_text_localized: Option<String>
secure_url: Option<String>
position_in_sequence: Option<i32>
supports_fife_url_options: Option<bool>
citation: Option<Citation>
color: Option<String>
screenshot_set_number: Option<i32>
Implementations
sourceimpl Image
impl Image
sourcepub fn image_type(&self) -> i32
pub fn image_type(&self) -> i32
Returns the value of image_type
, or the default value if image_type
is unset.
sourcepub fn image_url(&self) -> &str
pub fn image_url(&self) -> &str
Returns the value of image_url
, or the default value if image_url
is unset.
sourcepub fn alt_text_localized(&self) -> &str
pub fn alt_text_localized(&self) -> &str
Returns the value of alt_text_localized
, or the default value if alt_text_localized
is unset.
sourcepub fn secure_url(&self) -> &str
pub fn secure_url(&self) -> &str
Returns the value of secure_url
, or the default value if secure_url
is unset.
sourcepub fn position_in_sequence(&self) -> i32
pub fn position_in_sequence(&self) -> i32
Returns the value of position_in_sequence
, or the default value if position_in_sequence
is unset.
sourcepub fn supports_fife_url_options(&self) -> bool
pub fn supports_fife_url_options(&self) -> bool
Returns the value of supports_fife_url_options
, or the default value if supports_fife_url_options
is unset.
sourcepub fn color(&self) -> &str
pub fn color(&self) -> &str
Returns the value of color
, or the default value if color
is unset.
sourcepub fn screenshot_set_number(&self) -> i32
pub fn screenshot_set_number(&self) -> i32
Returns the value of screenshot_set_number
, or the default value if screenshot_set_number
is unset.
Trait Implementations
sourceimpl Message for Image
impl Message for Image
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
impl StructuralPartialEq for Image
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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