pub struct ExtraInfo {
pub nick: Option<Vec<u8>>,
pub group_card: Option<Vec<u8>>,
pub level: Option<i32>,
pub flags: Option<i32>,
pub group_mask: Option<i32>,
pub msg_tail_id: Option<i32>,
pub sender_title: Option<Vec<u8>>,
pub apns_tips: Option<Vec<u8>>,
pub uin: Option<i64>,
pub msg_state_flag: Option<i32>,
pub apns_sound_type: Option<i32>,
pub new_group_flag: Option<i32>,
}
Fields§
§nick: Option<Vec<u8>>
§group_card: Option<Vec<u8>>
§level: Option<i32>
§flags: Option<i32>
§group_mask: Option<i32>
§msg_tail_id: Option<i32>
§sender_title: Option<Vec<u8>>
§apns_tips: Option<Vec<u8>>
§uin: Option<i64>
§msg_state_flag: Option<i32>
§apns_sound_type: Option<i32>
§new_group_flag: Option<i32>
Implementations§
source§impl ExtraInfo
impl ExtraInfo
sourcepub fn nick(&self) -> &[u8] ⓘ
pub fn nick(&self) -> &[u8] ⓘ
Returns the value of nick
, or the default value if nick
is unset.
sourcepub fn group_card(&self) -> &[u8] ⓘ
pub fn group_card(&self) -> &[u8] ⓘ
Returns the value of group_card
, or the default value if group_card
is unset.
sourcepub fn group_mask(&self) -> i32
pub fn group_mask(&self) -> i32
Returns the value of group_mask
, or the default value if group_mask
is unset.
sourcepub fn msg_tail_id(&self) -> i32
pub fn msg_tail_id(&self) -> i32
Returns the value of msg_tail_id
, or the default value if msg_tail_id
is unset.
sourcepub fn sender_title(&self) -> &[u8] ⓘ
pub fn sender_title(&self) -> &[u8] ⓘ
Returns the value of sender_title
, or the default value if sender_title
is unset.
sourcepub fn apns_tips(&self) -> &[u8] ⓘ
pub fn apns_tips(&self) -> &[u8] ⓘ
Returns the value of apns_tips
, or the default value if apns_tips
is unset.
sourcepub fn msg_state_flag(&self) -> i32
pub fn msg_state_flag(&self) -> i32
Returns the value of msg_state_flag
, or the default value if msg_state_flag
is unset.
sourcepub fn apns_sound_type(&self) -> i32
pub fn apns_sound_type(&self) -> i32
Returns the value of apns_sound_type
, or the default value if apns_sound_type
is unset.
sourcepub fn new_group_flag(&self) -> i32
pub fn new_group_flag(&self) -> i32
Returns the value of new_group_flag
, or the default value if new_group_flag
is unset.
Trait Implementations§
source§impl Message for ExtraInfo
impl Message for ExtraInfo
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