pub struct PnlChartResponse {
pub data: Vec<PnlChartPoint>,
pub total_value: Option<f64>,
pub total_unrealized_pnl: Option<f64>,
pub total_realized_pnl: Option<f64>,
}Expand description
Response from GET /portfolio/pnl-chart.
Fields§
§data: Vec<PnlChartPoint>§total_value: Option<f64>§total_unrealized_pnl: Option<f64>§total_realized_pnl: Option<f64>Trait Implementations§
Source§impl Clone for PnlChartResponse
impl Clone for PnlChartResponse
Source§fn clone(&self) -> PnlChartResponse
fn clone(&self) -> PnlChartResponse
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 moreSource§impl Debug for PnlChartResponse
impl Debug for PnlChartResponse
Source§impl<'de> Deserialize<'de> for PnlChartResponse
impl<'de> Deserialize<'de> for PnlChartResponse
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 PnlChartResponse
impl RefUnwindSafe for PnlChartResponse
impl Send for PnlChartResponse
impl Sync for PnlChartResponse
impl Unpin for PnlChartResponse
impl UnsafeUnpin for PnlChartResponse
impl UnwindSafe for PnlChartResponse
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