pub struct AndroidCheckinProto {
pub build: Option<AndroidBuildProto>,
pub last_checkin_msec: Option<i64>,
pub event: Vec<AndroidEventProto>,
pub stat: Vec<AndroidStatisticProto>,
pub requested_group: Vec<String>,
pub cell_operator: Option<String>,
pub sim_operator: Option<String>,
pub roaming: Option<String>,
pub user_number: Option<i32>,
}
Fields
build: Option<AndroidBuildProto>
last_checkin_msec: Option<i64>
event: Vec<AndroidEventProto>
stat: Vec<AndroidStatisticProto>
requested_group: Vec<String>
cell_operator: Option<String>
sim_operator: Option<String>
roaming: Option<String>
user_number: Option<i32>
Implementations
sourceimpl AndroidCheckinProto
impl AndroidCheckinProto
sourcepub fn last_checkin_msec(&self) -> i64
pub fn last_checkin_msec(&self) -> i64
Returns the value of last_checkin_msec
, or the default value if last_checkin_msec
is unset.
sourcepub fn cell_operator(&self) -> &str
pub fn cell_operator(&self) -> &str
Returns the value of cell_operator
, or the default value if cell_operator
is unset.
sourcepub fn sim_operator(&self) -> &str
pub fn sim_operator(&self) -> &str
Returns the value of sim_operator
, or the default value if sim_operator
is unset.
sourcepub fn roaming(&self) -> &str
pub fn roaming(&self) -> &str
Returns the value of roaming
, or the default value if roaming
is unset.
sourcepub fn user_number(&self) -> i32
pub fn user_number(&self) -> i32
Returns the value of user_number
, or the default value if user_number
is unset.
Trait Implementations
sourceimpl Clone for AndroidCheckinProto
impl Clone for AndroidCheckinProto
sourcefn clone(&self) -> AndroidCheckinProto
fn clone(&self) -> AndroidCheckinProto
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 AndroidCheckinProto
impl Debug for AndroidCheckinProto
sourceimpl Default for AndroidCheckinProto
impl Default for AndroidCheckinProto
sourceimpl Message for AndroidCheckinProto
impl Message for AndroidCheckinProto
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<AndroidCheckinProto> for AndroidCheckinProto
impl PartialEq<AndroidCheckinProto> for AndroidCheckinProto
sourcefn eq(&self, other: &AndroidCheckinProto) -> bool
fn eq(&self, other: &AndroidCheckinProto) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AndroidCheckinProto) -> bool
fn ne(&self, other: &AndroidCheckinProto) -> bool
This method tests for !=
.
impl StructuralPartialEq for AndroidCheckinProto
Auto Trait Implementations
impl RefUnwindSafe for AndroidCheckinProto
impl Send for AndroidCheckinProto
impl Sync for AndroidCheckinProto
impl Unpin for AndroidCheckinProto
impl UnwindSafe for AndroidCheckinProto
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