pub struct FetchTradeConfigResponse {
pub error_code: Option<i32>,
pub error_msg: Option<String>,
pub trade_config_list: Vec<TradeConfig>,
pub total_count: Option<u32>,
pub has_more: Option<bool>,
pub next_id: Option<u32>,
pub full_trade_config_list: Vec<TradeConfig>,
}Fields§
§error_code: Option<i32>错误码,0正常
error_msg: Option<String>错误信息
trade_config_list: Vec<TradeConfig>(用户可交易的)币对配置列表
total_count: Option<u32>总数
has_more: Option<bool>【已废弃,一直返回 false】是否还有数据
next_id: Option<u32>【已废弃】下一数据开始项
full_trade_config_list: Vec<TradeConfig>(全量的)币对配置列表
Implementations§
Source§impl FetchTradeConfigResponse
impl FetchTradeConfigResponse
Sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Returns the value of error_code, or the default value if error_code is unset.
Sourcepub fn error_msg(&self) -> &str
pub fn error_msg(&self) -> &str
Returns the value of error_msg, or the default value if error_msg is unset.
Sourcepub fn total_count(&self) -> u32
pub fn total_count(&self) -> u32
Returns the value of total_count, or the default value if total_count is unset.
Trait Implementations§
Source§impl Clone for FetchTradeConfigResponse
impl Clone for FetchTradeConfigResponse
Source§fn clone(&self) -> FetchTradeConfigResponse
fn clone(&self) -> FetchTradeConfigResponse
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 FetchTradeConfigResponse
impl Debug for FetchTradeConfigResponse
Source§impl Default for FetchTradeConfigResponse
impl Default for FetchTradeConfigResponse
Source§impl Message for FetchTradeConfigResponse
impl Message for FetchTradeConfigResponse
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 FetchTradeConfigResponse
impl PartialEq for FetchTradeConfigResponse
impl StructuralPartialEq for FetchTradeConfigResponse
Auto Trait Implementations§
impl Freeze for FetchTradeConfigResponse
impl RefUnwindSafe for FetchTradeConfigResponse
impl Send for FetchTradeConfigResponse
impl Sync for FetchTradeConfigResponse
impl Unpin for FetchTradeConfigResponse
impl UnsafeUnpin for FetchTradeConfigResponse
impl UnwindSafe for FetchTradeConfigResponse
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