pub struct DeviceConfigurationProto {Show 17 fields
pub touch_screen: Option<i32>,
pub keyboard: Option<i32>,
pub navigation: Option<i32>,
pub screen_layout: Option<i32>,
pub has_hard_keyboard: Option<bool>,
pub has_five_way_navigation: Option<bool>,
pub screen_density: Option<i32>,
pub gl_es_version: Option<i32>,
pub system_shared_library: Vec<String>,
pub system_available_feature: Vec<String>,
pub native_platform: Vec<String>,
pub screen_width: Option<i32>,
pub screen_height: Option<i32>,
pub system_supported_locale: Vec<String>,
pub gl_extension: Vec<String>,
pub device_class: Option<i32>,
pub max_apk_download_size_mb: Option<i32>,
}
Fields
touch_screen: Option<i32>
keyboard: Option<i32>
screen_layout: Option<i32>
has_hard_keyboard: Option<bool>
screen_density: Option<i32>
gl_es_version: Option<i32>
system_available_feature: Vec<String>
native_platform: Vec<String>
screen_width: Option<i32>
screen_height: Option<i32>
system_supported_locale: Vec<String>
gl_extension: Vec<String>
device_class: Option<i32>
max_apk_download_size_mb: Option<i32>
Implementations
sourceimpl DeviceConfigurationProto
impl DeviceConfigurationProto
sourcepub fn touch_screen(&self) -> i32
pub fn touch_screen(&self) -> i32
Returns the value of touch_screen
, or the default value if touch_screen
is unset.
sourcepub fn keyboard(&self) -> i32
pub fn keyboard(&self) -> i32
Returns the value of keyboard
, or the default value if keyboard
is unset.
Returns the value of navigation
, or the default value if navigation
is unset.
sourcepub fn screen_layout(&self) -> i32
pub fn screen_layout(&self) -> i32
Returns the value of screen_layout
, or the default value if screen_layout
is unset.
sourcepub fn has_hard_keyboard(&self) -> bool
pub fn has_hard_keyboard(&self) -> bool
Returns the value of has_hard_keyboard
, or the default value if has_hard_keyboard
is unset.
Returns the value of has_five_way_navigation
, or the default value if has_five_way_navigation
is unset.
sourcepub fn screen_density(&self) -> i32
pub fn screen_density(&self) -> i32
Returns the value of screen_density
, or the default value if screen_density
is unset.
sourcepub fn gl_es_version(&self) -> i32
pub fn gl_es_version(&self) -> i32
Returns the value of gl_es_version
, or the default value if gl_es_version
is unset.
sourcepub fn screen_width(&self) -> i32
pub fn screen_width(&self) -> i32
Returns the value of screen_width
, or the default value if screen_width
is unset.
sourcepub fn screen_height(&self) -> i32
pub fn screen_height(&self) -> i32
Returns the value of screen_height
, or the default value if screen_height
is unset.
sourcepub fn device_class(&self) -> i32
pub fn device_class(&self) -> i32
Returns the value of device_class
, or the default value if device_class
is unset.
sourcepub fn max_apk_download_size_mb(&self) -> i32
pub fn max_apk_download_size_mb(&self) -> i32
Returns the value of max_apk_download_size_mb
, or the default value if max_apk_download_size_mb
is unset.
Trait Implementations
sourceimpl Clone for DeviceConfigurationProto
impl Clone for DeviceConfigurationProto
sourcefn clone(&self) -> DeviceConfigurationProto
fn clone(&self) -> DeviceConfigurationProto
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeviceConfigurationProto
impl Debug for DeviceConfigurationProto
sourceimpl Default for DeviceConfigurationProto
impl Default for DeviceConfigurationProto
sourceimpl Message for DeviceConfigurationProto
impl Message for DeviceConfigurationProto
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
sourceimpl PartialEq<DeviceConfigurationProto> for DeviceConfigurationProto
impl PartialEq<DeviceConfigurationProto> for DeviceConfigurationProto
sourcefn eq(&self, other: &DeviceConfigurationProto) -> bool
fn eq(&self, other: &DeviceConfigurationProto) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DeviceConfigurationProto) -> bool
fn ne(&self, other: &DeviceConfigurationProto) -> bool
This method tests for !=
.
impl StructuralPartialEq for DeviceConfigurationProto
Auto Trait Implementations
impl RefUnwindSafe for DeviceConfigurationProto
impl Send for DeviceConfigurationProto
impl Sync for DeviceConfigurationProto
impl Unpin for DeviceConfigurationProto
impl UnwindSafe for DeviceConfigurationProto
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