pub struct GetBorrowHistoryParams {
pub currency: 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_borrow_history.
Fields§
§currency: Option<String>Currency, uppercase only
start_time: Option<Timestamp>The start timestamp (ms). Combined with end_time, cannot exceed 30 days
end_time: Option<Timestamp>The end timestamp (ms). Combined with start_time, cannot exceed 30 days
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 GetBorrowHistoryParams
impl GetBorrowHistoryParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_currency(self, v: impl Into<String>) -> Self
pub fn with_currency(self, v: impl Into<String>) -> Self
Set currency: currency, uppercase only.
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). Combined with end_time, cannot exceed 30 days.
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). Combined with start_time, cannot exceed 30 days.
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.