Struct ricq_core::pb::msg::GetMessageRequest
source · pub struct GetMessageRequest {
pub sync_flag: Option<i32>,
pub sync_cookie: Option<Vec<u8>>,
pub ramble_flag: Option<i32>,
pub latest_ramble_number: Option<i32>,
pub other_ramble_number: Option<i32>,
pub online_sync_flag: Option<i32>,
pub context_flag: Option<i32>,
pub whisper_session_id: Option<i32>,
pub msg_req_type: Option<i32>,
pub pubaccount_cookie: Option<Vec<u8>>,
pub msg_ctrl_buf: Option<Vec<u8>>,
pub server_buf: Option<Vec<u8>>,
}
Fields§
§sync_flag: Option<i32>
§ramble_flag: Option<i32>
§latest_ramble_number: Option<i32>
§other_ramble_number: Option<i32>
§online_sync_flag: Option<i32>
§context_flag: Option<i32>
§whisper_session_id: Option<i32>
§msg_req_type: Option<i32>
§msg_ctrl_buf: Option<Vec<u8>>
§server_buf: Option<Vec<u8>>
Implementations§
source§impl GetMessageRequest
impl GetMessageRequest
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.
Returns the value of sync_cookie
, or the default value if sync_cookie
is unset.
sourcepub fn ramble_flag(&self) -> i32
pub fn ramble_flag(&self) -> i32
Returns the value of ramble_flag
, or the default value if ramble_flag
is unset.
sourcepub fn latest_ramble_number(&self) -> i32
pub fn latest_ramble_number(&self) -> i32
Returns the value of latest_ramble_number
, or the default value if latest_ramble_number
is unset.
sourcepub fn other_ramble_number(&self) -> i32
pub fn other_ramble_number(&self) -> i32
Returns the value of other_ramble_number
, or the default value if other_ramble_number
is unset.
sourcepub fn online_sync_flag(&self) -> i32
pub fn online_sync_flag(&self) -> i32
Returns the value of online_sync_flag
, or the default value if online_sync_flag
is unset.
sourcepub fn context_flag(&self) -> i32
pub fn context_flag(&self) -> i32
Returns the value of context_flag
, or the default value if context_flag
is unset.
sourcepub fn whisper_session_id(&self) -> i32
pub fn whisper_session_id(&self) -> i32
Returns the value of whisper_session_id
, or the default value if whisper_session_id
is unset.
sourcepub fn msg_req_type(&self) -> i32
pub fn msg_req_type(&self) -> i32
Returns the value of msg_req_type
, or the default value if msg_req_type
is unset.
Returns the value of pubaccount_cookie
, or the default value if pubaccount_cookie
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.
sourcepub fn server_buf(&self) -> &[u8] ⓘ
pub fn server_buf(&self) -> &[u8] ⓘ
Returns the value of server_buf
, or the default value if server_buf
is unset.
Trait Implementations§
source§impl Clone for GetMessageRequest
impl Clone for GetMessageRequest
source§fn clone(&self) -> GetMessageRequest
fn clone(&self) -> GetMessageRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetMessageRequest
impl Debug for GetMessageRequest
source§impl Default for GetMessageRequest
impl Default for GetMessageRequest
source§impl Message for GetMessageRequest
impl Message for GetMessageRequest
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