pub struct GetExchangeOrderRecordParams {
pub from_coin: Option<String>,
pub to_coin: Option<String>,
pub limit: Option<u64>,
pub cursor: Option<String>,
}Expand description
Query params for
Client::get_exchange_order_record.
Fields§
§from_coin: Option<String>The currency to convert from, uppercase only. e.g, BTC.
to_coin: Option<String>The currency to convert to, uppercase only. e.g, USDT.
limit: Option<u64>Limit for data size per page. [1, 50]. Default: 10
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetExchangeOrderRecordParams
impl GetExchangeOrderRecordParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_from_coin(self, v: impl Into<String>) -> Self
pub fn with_from_coin(self, v: impl Into<String>) -> Self
Set from_coin: the currency to convert from, uppercase only. e.g, BTC.
Sourcepub fn with_to_coin(self, v: impl Into<String>) -> Self
pub fn with_to_coin(self, v: impl Into<String>) -> Self
Set to_coin: the currency to convert to, uppercase only. e.g, USDT.
Sourcepub fn with_limit(self, v: u64) -> Self
pub fn with_limit(self, v: u64) -> Self
Set limit: limit for data size per page. [1, 50]. Default: 10.
Sourcepub fn with_cursor(self, v: impl Into<String>) -> Self
pub fn with_cursor(self, v: impl Into<String>) -> Self
Set cursor: cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Trait Implementations§
Source§impl Clone for GetExchangeOrderRecordParams
impl Clone for GetExchangeOrderRecordParams
Source§impl Debug for GetExchangeOrderRecordParams
impl Debug for GetExchangeOrderRecordParams
Auto Trait Implementations§
impl Freeze for GetExchangeOrderRecordParams
impl RefUnwindSafe for GetExchangeOrderRecordParams
impl Send for GetExchangeOrderRecordParams
impl Sync for GetExchangeOrderRecordParams
impl Unpin for GetExchangeOrderRecordParams
impl UnsafeUnpin for GetExchangeOrderRecordParams
impl UnwindSafe for GetExchangeOrderRecordParams
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