Struct ricq_core::pb::msg::GetMessageResponse
source · pub struct GetMessageResponse {
pub result: Option<i32>,
pub error_message: Option<String>,
pub sync_cookie: Option<Vec<u8>>,
pub sync_flag: Option<i32>,
pub uin_pair_msgs: Vec<UinPairMessage>,
pub bind_uin: Option<i64>,
pub msg_rsp_type: Option<i32>,
pub pub_account_cookie: Option<Vec<u8>>,
pub is_partial_sync: Option<bool>,
pub msg_ctrl_buf: Option<Vec<u8>>,
}
Fields§
§result: Option<i32>
§error_message: Option<String>
§sync_flag: Option<i32>
§uin_pair_msgs: Vec<UinPairMessage>
§bind_uin: Option<i64>
§msg_rsp_type: Option<i32>
§is_partial_sync: Option<bool>
§msg_ctrl_buf: Option<Vec<u8>>
Implementations§
source§impl GetMessageResponse
impl GetMessageResponse
sourcepub fn result(&self) -> i32
pub fn result(&self) -> i32
Returns the value of result
, or the default value if result
is unset.
sourcepub fn error_message(&self) -> &str
pub fn error_message(&self) -> &str
Returns the value of error_message
, or the default value if error_message
is unset.
Returns the value of sync_cookie
, or the default value if sync_cookie
is unset.
sourcepub fn sync_flag(&self) -> SyncFlag
pub fn sync_flag(&self) -> SyncFlag
Returns the enum value of sync_flag
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_sync_flag(&mut self, value: SyncFlag)
pub fn set_sync_flag(&mut self, value: SyncFlag)
Sets sync_flag
to the provided enum value.
sourcepub fn bind_uin(&self) -> i64
pub fn bind_uin(&self) -> i64
Returns the value of bind_uin
, or the default value if bind_uin
is unset.
sourcepub fn msg_rsp_type(&self) -> i32
pub fn msg_rsp_type(&self) -> i32
Returns the value of msg_rsp_type
, or the default value if msg_rsp_type
is unset.
Returns the value of pub_account_cookie
, or the default value if pub_account_cookie
is unset.
sourcepub fn is_partial_sync(&self) -> bool
pub fn is_partial_sync(&self) -> bool
Returns the value of is_partial_sync
, or the default value if is_partial_sync
is unset.
sourcepub fn msg_ctrl_buf(&self) -> &[u8] ⓘ
pub fn msg_ctrl_buf(&self) -> &[u8] ⓘ
Returns the value of msg_ctrl_buf
, or the default value if msg_ctrl_buf
is unset.
Trait Implementations§
source§impl Clone for GetMessageResponse
impl Clone for GetMessageResponse
source§fn clone(&self) -> GetMessageResponse
fn clone(&self) -> GetMessageResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetMessageResponse
impl Debug for GetMessageResponse
source§impl Default for GetMessageResponse
impl Default for GetMessageResponse
source§impl Message for GetMessageResponse
impl Message for GetMessageResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
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,
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,
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,
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,
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,
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,
self
. Read more