pub struct BinancePapiBalance {Show 13 fields
pub asset: Ustr,
pub total_wallet_balance: Option<Decimal>,
pub cross_margin_asset: Option<Decimal>,
pub cross_margin_borrowed: Option<Decimal>,
pub cross_margin_free: Option<Decimal>,
pub cross_margin_interest: Option<Decimal>,
pub cross_margin_locked: Option<Decimal>,
pub um_wallet_balance: Option<Decimal>,
pub um_unrealized_pnl: Option<Decimal>,
pub cm_wallet_balance: Option<Decimal>,
pub cm_unrealized_pnl: Option<Decimal>,
pub update_time: Option<i64>,
pub negative_balance: Option<Decimal>,
}Expand description
Portfolio Margin balance entry for one asset.
Fields§
§asset: UstrAsset code.
total_wallet_balance: Option<Decimal>Total wallet balance.
cross_margin_asset: Option<Decimal>Cross-Margin assets, equal to free plus locked.
cross_margin_borrowed: Option<Decimal>Borrowed principal.
cross_margin_free: Option<Decimal>Free cross-Margin wallet amount.
cross_margin_interest: Option<Decimal>Cross-Margin interest.
cross_margin_locked: Option<Decimal>Locked cross-Margin wallet amount.
um_wallet_balance: Option<Decimal>USD-M wallet component.
um_unrealized_pnl: Option<Decimal>USD-M unrealized PnL.
cm_wallet_balance: Option<Decimal>COIN-M wallet component.
cm_unrealized_pnl: Option<Decimal>COIN-M unrealized PnL.
update_time: Option<i64>Last update time in milliseconds.
negative_balance: Option<Decimal>Reported negative balance.
Trait Implementations§
Source§impl Clone for BinancePapiBalance
impl Clone for BinancePapiBalance
Source§impl Debug for BinancePapiBalance
impl Debug for BinancePapiBalance
Source§impl<'de> Deserialize<'de> for BinancePapiBalance
impl<'de> Deserialize<'de> for BinancePapiBalance
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
Source§impl PartialEq for BinancePapiBalance
impl PartialEq for BinancePapiBalance
impl StructuralPartialEq for BinancePapiBalance
Auto Trait Implementations§
impl Freeze for BinancePapiBalance
impl RefUnwindSafe for BinancePapiBalance
impl Send for BinancePapiBalance
impl Sync for BinancePapiBalance
impl Unpin for BinancePapiBalance
impl UnsafeUnpin for BinancePapiBalance
impl UnwindSafe for BinancePapiBalance
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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