pub struct GetInternalTransferRecordsParams {
pub transfer_id: Option<String>,
pub coin: Option<String>,
pub status: Option<TransferStatus>,
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_internal_transfer_records.
Fields§
§transfer_id: Option<String>UUID. Use the one you generated in createTransfer.
coin: Option<String>Coin, uppercase only.
status: Option<TransferStatus>Transfer status.
start_time: Option<Timestamp>Without start_time and end_time, returns the past 7 days by default
end_time: Option<Timestamp>The end timestamp (ms) Note: the query logic is actually effective based on second level.
limit: Option<u64>Limit for data size per page. [1, 50]. Default: 20
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetInternalTransferRecordsParams
impl GetInternalTransferRecordsParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_transfer_id(self, v: impl Into<String>) -> Self
pub fn with_transfer_id(self, v: impl Into<String>) -> Self
Set transfer_id: uUID. Use the one you generated in createTransfer.
Sourcepub fn with_status(self, v: TransferStatus) -> Self
pub fn with_status(self, v: TransferStatus) -> Self
Set status: transfer status.
Sourcepub fn with_start_time(self, v: Timestamp) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
Set start_time: without start_time and end_time, returns the past 7 days by default.
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) Note: the query logic is actually effective based on second level.
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: 20.
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.