#[non_exhaustive]pub struct Position {
pub position_id: Option<String>,
pub symbol: Symbol,
pub side: PositionSide,
pub margin_mode: Option<MarginMode>,
pub quantity: Decimal,
pub entry_price: Option<Decimal>,
pub mark_price: Option<Decimal>,
pub unrealized_pnl: Option<Decimal>,
pub leverage: Option<Decimal>,
pub liquidation_price: Option<Decimal>,
pub updated_at: OffsetDateTime,
pub extensions: Extensions,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.position_id: Option<String>§symbol: Symbol§side: PositionSide§margin_mode: Option<MarginMode>§quantity: Decimal§entry_price: Option<Decimal>§mark_price: Option<Decimal>§unrealized_pnl: Option<Decimal>§leverage: Option<Decimal>§liquidation_price: Option<Decimal>§updated_at: OffsetDateTime§extensions: ExtensionsImplementations§
Trait Implementations§
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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