Struct ricq_core::pb::msg::SyncCookie
source · pub struct SyncCookie {
pub time1: Option<i64>,
pub time: Option<i64>,
pub ran1: Option<i64>,
pub ran2: Option<i64>,
pub const1: Option<i64>,
pub const2: Option<i64>,
pub const3: Option<i64>,
pub last_sync_time: Option<i64>,
pub const4: Option<i64>,
}
Fields§
§time1: Option<i64>
§time: Option<i64>
§ran1: Option<i64>
§ran2: Option<i64>
§const1: Option<i64>
§const2: Option<i64>
§const3: Option<i64>
§last_sync_time: Option<i64>
§const4: Option<i64>
Implementations§
source§impl SyncCookie
impl SyncCookie
sourcepub fn const1(&self) -> i64
pub fn const1(&self) -> i64
Returns the value of const1
, or the default value if const1
is unset.
sourcepub fn const2(&self) -> i64
pub fn const2(&self) -> i64
Returns the value of const2
, or the default value if const2
is unset.
sourcepub fn const3(&self) -> i64
pub fn const3(&self) -> i64
Returns the value of const3
, or the default value if const3
is unset.
sourcepub fn last_sync_time(&self) -> i64
pub fn last_sync_time(&self) -> i64
Returns the value of last_sync_time
, or the default value if last_sync_time
is unset.
Trait Implementations§
source§impl Clone for SyncCookie
impl Clone for SyncCookie
source§fn clone(&self) -> SyncCookie
fn clone(&self) -> SyncCookie
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SyncCookie
impl Debug for SyncCookie
source§impl Default for SyncCookie
impl Default for SyncCookie
source§impl Message for SyncCookie
impl Message for SyncCookie
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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn 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
source§fn 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.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
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>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
. Read more