pub struct GetWithdrawalRecordsParams {
pub withdraw_id: Option<String>,
pub tx_id: Option<String>,
pub coin: Option<String>,
pub withdraw_type: Option<i64>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub limit: Option<u64>,
pub cursor: Option<String>,
}Expand description
Query params for
Client::get_withdrawal_records.
Fields§
§withdraw_id: Option<String>Withdraw ID.
tx_id: Option<String>Transaction id (hash) on the chain.
coin: Option<String>Coin, uppercase only.
withdraw_type: Option<i64>0: on chain, 1: off chain, 2: all. Default: 0
start_time: Option<Timestamp>The start timestamp (ms).
end_time: Option<Timestamp>The end timestamp (ms).
limit: Option<u64>Limit for data size per page. [1, 50]. Default: 50
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetWithdrawalRecordsParams
impl GetWithdrawalRecordsParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_withdraw_id(self, v: impl Into<String>) -> Self
pub fn with_withdraw_id(self, v: impl Into<String>) -> Self
Set withdraw_id: withdraw ID.
Sourcepub fn with_tx_id(self, v: impl Into<String>) -> Self
pub fn with_tx_id(self, v: impl Into<String>) -> Self
Set tx_id: transaction id (hash) on the chain.
Sourcepub fn with_withdraw_type(self, v: i64) -> Self
pub fn with_withdraw_type(self, v: i64) -> Self
Set withdraw_type: 0: on chain, 1: off chain, 2: all. Default: 0.
Sourcepub fn with_start_time(self, v: Timestamp) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
Set start_time: the start timestamp (ms).
Sourcepub fn with_end_time(self, v: Timestamp) -> Self
pub fn with_end_time(self, v: Timestamp) -> Self
Set end_time: the end timestamp (ms).
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: 50.
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.