pub struct PositionStateSnapshot {
pub position: Position,
pub unrealized_pnl: Option<Money>,
pub ts_snapshot: UnixNanos,
}Expand description
Position state snapshot published to the snapshots.position.{position_id} topic.
Fields§
§position: PositionThe position state at the time of the snapshot.
unrealized_pnl: Option<Money>The unrealized PnL for the position, when a current quote is available.
ts_snapshot: UnixNanosUNIX timestamp (nanoseconds) when the snapshot was taken.
Trait Implementations§
Source§impl Clone for PositionStateSnapshot
impl Clone for PositionStateSnapshot
Source§fn clone(&self) -> PositionStateSnapshot
fn clone(&self) -> PositionStateSnapshot
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 moreAuto Trait Implementations§
impl Freeze for PositionStateSnapshot
impl RefUnwindSafe for PositionStateSnapshot
impl Send for PositionStateSnapshot
impl Sync for PositionStateSnapshot
impl Unpin for PositionStateSnapshot
impl UnsafeUnpin for PositionStateSnapshot
impl UnwindSafe for PositionStateSnapshot
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