pub struct AccountPositionTiersRequest<'a> { /* private fields */ }Expand description
Query parameters for account position tiers.
Implementations§
Source§impl<'a> AccountPositionTiersRequest<'a>
impl<'a> AccountPositionTiersRequest<'a>
Sourcepub fn new(inst_type: InstType) -> Self
pub fn new(inst_type: InstType) -> Self
Create an account position-tiers query with the documented required instrument type.
Set either Self::underlying or Self::inst_family. OKX uses
instFamily first when both are provided.
Sourcepub fn underlying(self, underlying: impl Into<Cow<'a, str>>) -> Self
pub fn underlying(self, underlying: impl Into<Cow<'a, str>>) -> Self
Set the underlying filter.
Sourcepub fn inst_family(self, inst_family: impl Into<Cow<'a, str>>) -> Self
pub fn inst_family(self, inst_family: impl Into<Cow<'a, str>>) -> Self
Set the instrument family filter.
Trait Implementations§
Source§impl<'a> Clone for AccountPositionTiersRequest<'a>
impl<'a> Clone for AccountPositionTiersRequest<'a>
Source§fn clone(&self) -> AccountPositionTiersRequest<'a>
fn clone(&self) -> AccountPositionTiersRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AccountPositionTiersRequest<'a>
impl<'a> Debug for AccountPositionTiersRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccountPositionTiersRequest<'a>
impl<'a> RefUnwindSafe for AccountPositionTiersRequest<'a>
impl<'a> Send for AccountPositionTiersRequest<'a>
impl<'a> Sync for AccountPositionTiersRequest<'a>
impl<'a> Unpin for AccountPositionTiersRequest<'a>
impl<'a> UnsafeUnpin for AccountPositionTiersRequest<'a>
impl<'a> UnwindSafe for AccountPositionTiersRequest<'a>
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