pub struct ExchangeAction {
pub action_type: String,
pub params: Value,
}
Expand description
Represents an exchange action wrapper for POST /exchange
.
Fields§
§action_type: String
§params: Value
Implementations§
Source§impl ExchangeAction
impl ExchangeAction
Sourcepub fn cancel_by_cloid(cancels: Value) -> Self
pub fn cancel_by_cloid(cancels: Value) -> Self
Creates an action to cancel orders by client order ID.
Sourcepub fn update_leverage(asset: u32, is_cross: bool, leverage: u32) -> Self
pub fn update_leverage(asset: u32, is_cross: bool, leverage: u32) -> Self
Creates an action to update leverage for an asset.
Sourcepub fn update_isolated_margin(asset: u32, is_buy: bool, ntli: i64) -> Self
pub fn update_isolated_margin(asset: u32, is_buy: bool, ntli: i64) -> Self
Creates an action to update isolated margin for an asset.
Trait Implementations§
Source§impl Clone for ExchangeAction
impl Clone for ExchangeAction
Source§fn clone(&self) -> ExchangeAction
fn clone(&self) -> ExchangeAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExchangeAction
impl Debug for ExchangeAction
Auto Trait Implementations§
impl Freeze for ExchangeAction
impl RefUnwindSafe for ExchangeAction
impl Send for ExchangeAction
impl Sync for ExchangeAction
impl Unpin for ExchangeAction
impl UnwindSafe for ExchangeAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more