pub struct GetSubDepositRecordsParams {
pub sub_member_id: String,
pub id: Option<String>,
pub tx_id: Option<String>,
pub coin: Option<String>,
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_sub_deposit_records.
Fields§
§sub_member_id: StringSub UID.
id: Option<String>Internal ID: Can be used to uniquely identify and filter the deposit. When combined with other parameters, this field takes the highest priority.
tx_id: Option<String>Transaction id (hash) on the chain.
coin: Option<String>Coin, uppercase only.
start_time: Option<Timestamp>The start timestamp (ms) Note: the query logic is actually effective based on second level.
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: 50
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetSubDepositRecordsParams
impl GetSubDepositRecordsParams
Sourcepub fn new(sub_member_id: impl Into<String>) -> Self
pub fn new(sub_member_id: impl Into<String>) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_id(self, v: impl Into<String>) -> Self
pub fn with_id(self, v: impl Into<String>) -> Self
Set id: internal ID: Can be used to uniquely identify and filter the deposit. When combined with other parameters, this field takes the highest priority.
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_start_time(self, v: Timestamp) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
Set start_time: the start timestamp (ms) Note: the query logic is actually effective based on second level.
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: 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.