pub struct PortfolioAssetsPerformance {
pub calculation_method: Option<PortfolioAssetsPerformanceCalculationMethod>,
pub pnl: Option<String>,
pub return_pct: Option<String>,
}Expand description
PortfolioAssetsPerformance
JSON schema
{
"type": "object",
"properties": {
"calculationMethod": {
"type": [
"string",
"null"
],
"enum": [
"sampled_twr"
]
},
"pnl": {
"type": [
"string",
"null"
]
},
"returnPct": {
"type": [
"string",
"null"
]
}
}
}Fields§
§calculation_method: Option<PortfolioAssetsPerformanceCalculationMethod>§pnl: Option<String>§return_pct: Option<String>Trait Implementations§
Source§impl Clone for PortfolioAssetsPerformance
impl Clone for PortfolioAssetsPerformance
Source§fn clone(&self) -> PortfolioAssetsPerformance
fn clone(&self) -> PortfolioAssetsPerformance
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 PortfolioAssetsPerformance
impl Debug for PortfolioAssetsPerformance
Source§impl Default for PortfolioAssetsPerformance
impl Default for PortfolioAssetsPerformance
Source§impl<'de> Deserialize<'de> for PortfolioAssetsPerformance
impl<'de> Deserialize<'de> for PortfolioAssetsPerformance
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 PortfolioAssetsPerformance
impl RefUnwindSafe for PortfolioAssetsPerformance
impl Send for PortfolioAssetsPerformance
impl Sync for PortfolioAssetsPerformance
impl Unpin for PortfolioAssetsPerformance
impl UnsafeUnpin for PortfolioAssetsPerformance
impl UnwindSafe for PortfolioAssetsPerformance
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