pub struct BinanceAccountPosition {Show 15 fields
pub symbol: Ustr,
pub initial_margin: Option<String>,
pub maint_margin: Option<String>,
pub unrealized_profit: Option<String>,
pub position_initial_margin: Option<String>,
pub open_order_initial_margin: Option<String>,
pub leverage: Option<String>,
pub isolated: Option<bool>,
pub entry_price: Option<String>,
pub max_notional: Option<String>,
pub bid_notional: Option<String>,
pub ask_notional: Option<String>,
pub position_side: Option<BinancePositionSide>,
pub position_amt: Option<String>,
pub update_time: Option<i64>,
}Expand description
Account position from GET /fapi/v2/account positions array.
Fields§
§symbol: UstrSymbol name.
initial_margin: Option<String>Initial margin.
maint_margin: Option<String>Maintenance margin.
unrealized_profit: Option<String>Unrealized profit.
position_initial_margin: Option<String>Position initial margin.
open_order_initial_margin: Option<String>Open order initial margin.
leverage: Option<String>Leverage.
isolated: Option<bool>Isolated margin mode.
entry_price: Option<String>Entry price.
max_notional: Option<String>Max notional value.
bid_notional: Option<String>Bid notional.
ask_notional: Option<String>Ask notional.
position_side: Option<BinancePositionSide>Position side (BOTH, LONG, SHORT).
position_amt: Option<String>Position amount.
update_time: Option<i64>Update time.
Trait Implementations§
Source§impl Clone for BinanceAccountPosition
impl Clone for BinanceAccountPosition
Source§fn clone(&self) -> BinanceAccountPosition
fn clone(&self) -> BinanceAccountPosition
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 BinanceAccountPosition
impl Debug for BinanceAccountPosition
Source§impl<'de> Deserialize<'de> for BinanceAccountPosition
impl<'de> Deserialize<'de> for BinanceAccountPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BinanceAccountPosition
impl RefUnwindSafe for BinanceAccountPosition
impl Send for BinanceAccountPosition
impl Sync for BinanceAccountPosition
impl Unpin for BinanceAccountPosition
impl UnsafeUnpin for BinanceAccountPosition
impl UnwindSafe for BinanceAccountPosition
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