pub struct PnlPoint {
pub timestamp: i64,
pub pnl: f64,
}Expand description
A single point on a user’s PnL curve.
Fields§
§timestamp: i64Unix timestamp in seconds.
pnl: f64PnL in USDC at that timestamp. Negative values are losses.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PnlPoint
impl<'de> Deserialize<'de> for PnlPoint
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 PnlPoint
impl RefUnwindSafe for PnlPoint
impl Send for PnlPoint
impl Sync for PnlPoint
impl Unpin for PnlPoint
impl UnsafeUnpin for PnlPoint
impl UnwindSafe for PnlPoint
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