pub struct GetLeverageTokenOrderRecordsParams {
pub lt_coin: Option<String>,
pub order_id: Option<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub limit: Option<u64>,
pub lt_order_type: Option<LtOrderType>,
pub serial_no: Option<String>,
}Expand description
Query params for
Client::get_leverage_token_order_records.
Fields§
§lt_coin: Option<String>Abbreviation of the LT, such as BTC3L
order_id: Option<String>Order ID.
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, 500]. Default: 100
lt_order_type: Option<LtOrderType>LT order type. 1: purchase, 2: redemption.
serial_no: Option<String>Serial number.
Implementations§
Source§impl GetLeverageTokenOrderRecordsParams
impl GetLeverageTokenOrderRecordsParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_lt_coin(self, v: impl Into<String>) -> Self
pub fn with_lt_coin(self, v: impl Into<String>) -> Self
Set lt_coin: abbreviation of the LT, such as BTC3L.
Sourcepub fn with_order_id(self, v: impl Into<String>) -> Self
pub fn with_order_id(self, v: impl Into<String>) -> Self
Set order_id: order ID.
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, 500]. Default: 100.
Sourcepub fn with_lt_order_type(self, v: LtOrderType) -> Self
pub fn with_lt_order_type(self, v: LtOrderType) -> Self
Set lt_order_type: lT order type. 1: purchase, 2: redemption.
Sourcepub fn with_serial_no(self, v: impl Into<String>) -> Self
pub fn with_serial_no(self, v: impl Into<String>) -> Self
Set serial_no: serial number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetLeverageTokenOrderRecordsParams
impl RefUnwindSafe for GetLeverageTokenOrderRecordsParams
impl Send for GetLeverageTokenOrderRecordsParams
impl Sync for GetLeverageTokenOrderRecordsParams
impl Unpin for GetLeverageTokenOrderRecordsParams
impl UnsafeUnpin for GetLeverageTokenOrderRecordsParams
impl UnwindSafe for GetLeverageTokenOrderRecordsParams
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