Struct ricq_core::pb::msg::TransMsgInfo
source · pub struct TransMsgInfo {Show 13 fields
pub from_uin: Option<i64>,
pub to_uin: Option<i64>,
pub msg_type: Option<i32>,
pub msg_subtype: Option<i32>,
pub msg_seq: Option<i32>,
pub msg_uid: Option<i64>,
pub msg_time: Option<i32>,
pub real_msg_time: Option<i32>,
pub nick_name: Option<String>,
pub msg_data: Option<Vec<u8>>,
pub svr_ip: Option<i32>,
pub ext_group_key_info: Option<ExtGroupKeyInfo>,
pub general_flag: Option<i32>,
}
Fields§
§from_uin: Option<i64>
§to_uin: Option<i64>
§msg_type: Option<i32>
§msg_subtype: Option<i32>
§msg_seq: Option<i32>
§msg_uid: Option<i64>
§msg_time: Option<i32>
§real_msg_time: Option<i32>
§nick_name: Option<String>
§msg_data: Option<Vec<u8>>
§svr_ip: Option<i32>
§ext_group_key_info: Option<ExtGroupKeyInfo>
§general_flag: Option<i32>
Implementations§
source§impl TransMsgInfo
impl TransMsgInfo
sourcepub fn from_uin(&self) -> i64
pub fn from_uin(&self) -> i64
Returns the value of from_uin
, or the default value if from_uin
is unset.
sourcepub fn to_uin(&self) -> i64
pub fn to_uin(&self) -> i64
Returns the value of to_uin
, or the default value if to_uin
is unset.
sourcepub fn msg_type(&self) -> i32
pub fn msg_type(&self) -> i32
Returns the value of msg_type
, or the default value if msg_type
is unset.
sourcepub fn msg_subtype(&self) -> i32
pub fn msg_subtype(&self) -> i32
Returns the value of msg_subtype
, or the default value if msg_subtype
is unset.
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_uid(&self) -> i64
pub fn msg_uid(&self) -> i64
Returns the value of msg_uid
, or the default value if msg_uid
is unset.
sourcepub fn msg_time(&self) -> i32
pub fn msg_time(&self) -> i32
Returns the value of msg_time
, or the default value if msg_time
is unset.
sourcepub fn real_msg_time(&self) -> i32
pub fn real_msg_time(&self) -> i32
Returns the value of real_msg_time
, or the default value if real_msg_time
is unset.
sourcepub fn nick_name(&self) -> &str
pub fn nick_name(&self) -> &str
Returns the value of nick_name
, or the default value if nick_name
is unset.
sourcepub fn msg_data(&self) -> &[u8] ⓘ
pub fn msg_data(&self) -> &[u8] ⓘ
Returns the value of msg_data
, or the default value if msg_data
is unset.
sourcepub fn svr_ip(&self) -> i32
pub fn svr_ip(&self) -> i32
Returns the value of svr_ip
, or the default value if svr_ip
is unset.
sourcepub fn general_flag(&self) -> i32
pub fn general_flag(&self) -> i32
Returns the value of general_flag
, or the default value if general_flag
is unset.
Trait Implementations§
source§impl Clone for TransMsgInfo
impl Clone for TransMsgInfo
source§fn clone(&self) -> TransMsgInfo
fn clone(&self) -> TransMsgInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransMsgInfo
impl Debug for TransMsgInfo
source§impl Default for TransMsgInfo
impl Default for TransMsgInfo
source§impl Message for TransMsgInfo
impl Message for TransMsgInfo
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