pub struct FetchDlcListReq {
pub market: Option<i32>,
pub only_count: Option<bool>,
pub is_delay: Option<bool>,
pub data_from: Option<i32>,
pub data_max_count: Option<i32>,
pub sort_col: i32,
pub sort_ascend: bool,
pub filter: Option<FetchDlcListFilter>,
}Expand description
请求查询dlc列表
Fields§
§market: Option<i32>市场,枚举定义查看 MARKET_TYPE
only_count: Option<bool>是否只请求涡轮数量
is_delay: Option<bool>当前市场是否延时权限
data_from: Option<i32>数据起始项
data_max_count: Option<i32>数据返回最大数(未填默认50个,最大1000)
sort_col: i32排序列id, 枚举定义查看 SORT_ID
sort_ascend: bool是否升序,true:升序,false降序
filter: Option<FetchDlcListFilter>筛选条件
Implementations§
Source§impl FetchDlcListReq
impl FetchDlcListReq
Sourcepub fn market(&self) -> i32
pub fn market(&self) -> i32
Returns the value of market, or the default value if market is unset.
Sourcepub fn only_count(&self) -> bool
pub fn only_count(&self) -> bool
Returns the value of only_count, or the default value if only_count is unset.
Sourcepub fn is_delay(&self) -> bool
pub fn is_delay(&self) -> bool
Returns the value of is_delay, or the default value if is_delay is unset.
Sourcepub fn data_from(&self) -> i32
pub fn data_from(&self) -> i32
Returns the value of data_from, or the default value if data_from is unset.
Sourcepub fn data_max_count(&self) -> i32
pub fn data_max_count(&self) -> i32
Returns the value of data_max_count, or the default value if data_max_count is unset.
Trait Implementations§
Source§impl Clone for FetchDlcListReq
impl Clone for FetchDlcListReq
Source§fn clone(&self) -> FetchDlcListReq
fn clone(&self) -> FetchDlcListReq
Returns a duplicate 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 FetchDlcListReq
impl Debug for FetchDlcListReq
Source§impl Default for FetchDlcListReq
impl Default for FetchDlcListReq
Source§impl Message for FetchDlcListReq
impl Message for FetchDlcListReq
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.Source§impl PartialEq for FetchDlcListReq
impl PartialEq for FetchDlcListReq
impl StructuralPartialEq for FetchDlcListReq
Auto Trait Implementations§
impl Freeze for FetchDlcListReq
impl RefUnwindSafe for FetchDlcListReq
impl Send for FetchDlcListReq
impl Sync for FetchDlcListReq
impl Unpin for FetchDlcListReq
impl UnsafeUnpin for FetchDlcListReq
impl UnwindSafe for FetchDlcListReq
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