Struct ricq_core::pb::msg::C2cTempMessageHead
source · pub struct C2cTempMessageHead {
pub c2c_type: Option<i32>,
pub service_type: Option<i32>,
pub group_uin: Option<i64>,
pub group_code: Option<i64>,
pub sig: Option<Vec<u8>>,
pub sig_type: Option<i32>,
pub from_phone: Option<String>,
pub to_phone: Option<String>,
pub lock_display: Option<i32>,
pub direction_flag: Option<i32>,
pub reserved: Option<Vec<u8>>,
}
Fields§
§c2c_type: Option<i32>
§service_type: Option<i32>
§group_uin: Option<i64>
§group_code: Option<i64>
§sig: Option<Vec<u8>>
§sig_type: Option<i32>
§from_phone: Option<String>
§to_phone: Option<String>
§lock_display: Option<i32>
§direction_flag: Option<i32>
§reserved: Option<Vec<u8>>
Implementations§
source§impl C2cTempMessageHead
impl C2cTempMessageHead
sourcepub fn c2c_type(&self) -> i32
pub fn c2c_type(&self) -> i32
Returns the value of c2c_type
, or the default value if c2c_type
is unset.
sourcepub fn service_type(&self) -> i32
pub fn service_type(&self) -> i32
Returns the value of service_type
, or the default value if service_type
is unset.
sourcepub fn group_uin(&self) -> i64
pub fn group_uin(&self) -> i64
Returns the value of group_uin
, or the default value if group_uin
is unset.
sourcepub fn group_code(&self) -> i64
pub fn group_code(&self) -> i64
Returns the value of group_code
, or the default value if group_code
is unset.
sourcepub fn sig_type(&self) -> i32
pub fn sig_type(&self) -> i32
Returns the value of sig_type
, or the default value if sig_type
is unset.
sourcepub fn from_phone(&self) -> &str
pub fn from_phone(&self) -> &str
Returns the value of from_phone
, or the default value if from_phone
is unset.
sourcepub fn to_phone(&self) -> &str
pub fn to_phone(&self) -> &str
Returns the value of to_phone
, or the default value if to_phone
is unset.
sourcepub fn lock_display(&self) -> i32
pub fn lock_display(&self) -> i32
Returns the value of lock_display
, or the default value if lock_display
is unset.
sourcepub fn direction_flag(&self) -> i32
pub fn direction_flag(&self) -> i32
Returns the value of direction_flag
, or the default value if direction_flag
is unset.
Trait Implementations§
source§impl Clone for C2cTempMessageHead
impl Clone for C2cTempMessageHead
source§fn clone(&self) -> C2cTempMessageHead
fn clone(&self) -> C2cTempMessageHead
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 C2cTempMessageHead
impl Debug for C2cTempMessageHead
source§impl Default for C2cTempMessageHead
impl Default for C2cTempMessageHead
source§impl Message for C2cTempMessageHead
impl Message for C2cTempMessageHead
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