pub struct GetRiskLimitParams {
pub category: Category,
pub symbol: Option<String>,
pub cursor: Option<String>,
}Expand description
Query params for Client::get_risk_limit.
Covers: linear / inverse
Fields§
§category: CategoryProduct type. linear, inverse.
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only.
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the data set.
Implementations§
Source§impl GetRiskLimitParams
impl GetRiskLimitParams
Sourcepub fn new(category: Category) -> Self
pub fn new(category: Category) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_symbol(self, v: impl Into<String>) -> Self
pub fn with_symbol(self, v: impl Into<String>) -> Self
Set symbol: symbol name, like BTCUSDT, uppercase only.
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 data set.
Trait Implementations§
Source§impl Clone for GetRiskLimitParams
impl Clone for GetRiskLimitParams
Source§impl Debug for GetRiskLimitParams
impl Debug for GetRiskLimitParams
Auto Trait Implementations§
impl Freeze for GetRiskLimitParams
impl RefUnwindSafe for GetRiskLimitParams
impl Send for GetRiskLimitParams
impl Sync for GetRiskLimitParams
impl Unpin for GetRiskLimitParams
impl UnsafeUnpin for GetRiskLimitParams
impl UnwindSafe for GetRiskLimitParams
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