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
sourceimpl 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(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn sig(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Returns the value of sig, or the default value if sig 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
sourceimpl Clone for C2cTempMessageHead
impl Clone for C2cTempMessageHead
sourcefn clone(&self) -> C2cTempMessageHead
fn clone(&self) -> C2cTempMessageHead
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for C2cTempMessageHead
impl Debug for C2cTempMessageHead
sourceimpl Default for C2cTempMessageHead
impl Default for C2cTempMessageHead
sourceimpl Message for C2cTempMessageHead
impl Message for C2cTempMessageHead
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn 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
sourcefn 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.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
sourceimpl PartialEq<C2cTempMessageHead> for C2cTempMessageHead
impl PartialEq<C2cTempMessageHead> for C2cTempMessageHead
sourcefn eq(&self, other: &C2cTempMessageHead) -> bool
fn eq(&self, other: &C2cTempMessageHead) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &C2cTempMessageHead) -> bool
fn ne(&self, other: &C2cTempMessageHead) -> bool
This method tests for !=.
impl StructuralPartialEq for C2cTempMessageHead
Auto Trait Implementations
impl RefUnwindSafe for C2cTempMessageHead
impl Send for C2cTempMessageHead
impl Sync for C2cTempMessageHead
impl Unpin for C2cTempMessageHead
impl UnwindSafe for C2cTempMessageHead
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more