Struct ricq_core::pb::msg::SendMessageRequest
source · pub struct SendMessageRequest {
pub routing_head: Option<RoutingHead>,
pub content_head: Option<ContentHead>,
pub msg_body: Option<MessageBody>,
pub msg_seq: Option<i32>,
pub msg_rand: Option<i32>,
pub sync_cookie: Option<Vec<u8>>,
pub msg_via: Option<i32>,
pub data_statist: Option<i32>,
pub msg_ctrl: Option<MsgCtrl>,
pub multi_send_seq: Option<i32>,
}
Fields§
§routing_head: Option<RoutingHead>
§content_head: Option<ContentHead>
§msg_body: Option<MessageBody>
§msg_seq: Option<i32>
§msg_rand: Option<i32>
§msg_via: Option<i32>
MsgComm.AppShareInfo? appShare = 7;
data_statist: Option<i32>
§msg_ctrl: Option<MsgCtrl>
MultiMsgAssist? multiMsgAssist = 10; PbInputNotifyInfo? inputNotifyInfo = 11;
multi_send_seq: Option<i32>
ImReceipt.ReceiptReq? receiptReq = 13;
Implementations§
source§impl SendMessageRequest
impl SendMessageRequest
sourcepub fn msg_seq(&self) -> i32
pub fn msg_seq(&self) -> i32
Returns the value of msg_seq
, or the default value if msg_seq
is unset.
sourcepub fn msg_rand(&self) -> i32
pub fn msg_rand(&self) -> i32
Returns the value of msg_rand
, or the default value if msg_rand
is unset.
Returns the value of sync_cookie
, or the default value if sync_cookie
is unset.
sourcepub fn msg_via(&self) -> i32
pub fn msg_via(&self) -> i32
Returns the value of msg_via
, or the default value if msg_via
is unset.
sourcepub fn data_statist(&self) -> i32
pub fn data_statist(&self) -> i32
Returns the value of data_statist
, or the default value if data_statist
is unset.
sourcepub fn multi_send_seq(&self) -> i32
pub fn multi_send_seq(&self) -> i32
Returns the value of multi_send_seq
, or the default value if multi_send_seq
is unset.
Trait Implementations§
source§impl Clone for SendMessageRequest
impl Clone for SendMessageRequest
source§fn clone(&self) -> SendMessageRequest
fn clone(&self) -> SendMessageRequest
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 SendMessageRequest
impl Debug for SendMessageRequest
source§impl Default for SendMessageRequest
impl Default for SendMessageRequest
source§impl Message for SendMessageRequest
impl Message for SendMessageRequest
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