pub struct C2s {Show 14 fields
pub stock_id: u64,
pub seq_from: Option<u32>,
pub seq_to: Option<u32>,
pub page_size: u32,
pub id_type: u32,
pub scene_id: Option<u32>,
pub audio_only: Option<bool>,
pub source: Option<u32>,
pub translate: Option<bool>,
pub seq_mark: Option<String>,
pub caller_biz: Option<i32>,
pub track_info: Option<String>,
pub dedup_ids: Vec<String>,
pub extension_version: u32,
}Fields§
§stock_id: u64§seq_from: Option<u32>§seq_to: Option<u32>§page_size: u321..50.
id_type: u321 security, 2 plate.
scene_id: Option<u32>§audio_only: Option<bool>§source: Option<u32>§translate: Option<bool>§seq_mark: Option<String>§caller_biz: Option<i32>§track_info: Option<String>§dedup_ids: Vec<String>§extension_version: u32Must be 1.
Implementations§
Source§impl C2s
impl C2s
Sourcepub fn seq_from(&self) -> u32
pub fn seq_from(&self) -> u32
Returns the value of seq_from, or the default value if seq_from is unset.
Sourcepub fn seq_to(&self) -> u32
pub fn seq_to(&self) -> u32
Returns the value of seq_to, or the default value if seq_to is unset.
Sourcepub fn scene_id(&self) -> u32
pub fn scene_id(&self) -> u32
Returns the value of scene_id, or the default value if scene_id is unset.
Sourcepub fn audio_only(&self) -> bool
pub fn audio_only(&self) -> bool
Returns the value of audio_only, or the default value if audio_only is unset.
Sourcepub fn source(&self) -> u32
pub fn source(&self) -> u32
Returns the value of source, or the default value if source is unset.
Sourcepub fn translate(&self) -> bool
pub fn translate(&self) -> bool
Returns the value of translate, or the default value if translate is unset.
Sourcepub fn seq_mark(&self) -> &str
pub fn seq_mark(&self) -> &str
Returns the value of seq_mark, or the default value if seq_mark is unset.
Sourcepub fn caller_biz(&self) -> i32
pub fn caller_biz(&self) -> i32
Returns the value of caller_biz, or the default value if caller_biz is unset.
Sourcepub fn track_info(&self) -> &str
pub fn track_info(&self) -> &str
Returns the value of track_info, or the default value if track_info is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for C2s
impl<'de> Deserialize<'de> for C2s
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for C2s
Source§impl Message for C2s
impl Message for C2s
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for C2s
Auto Trait Implementations§
impl Freeze for C2s
impl RefUnwindSafe for C2s
impl Send for C2s
impl Sync for C2s
impl Unpin for C2s
impl UnsafeUnpin for C2s
impl UnwindSafe for C2s
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more