pub struct ReturnObservation {
pub label: String,
pub portfolio_return: f64,
pub benchmark_return: f64,
}Expand description
A single return observation used to build a PerformanceTearsheet.
Fields§
§label: StringIdentifier for this period (e.g., “2024-01-15” or bar index).
portfolio_return: f64Portfolio return for this period.
benchmark_return: f64Benchmark return for the same period.
Trait Implementations§
Source§impl Clone for ReturnObservation
impl Clone for ReturnObservation
Auto Trait Implementations§
impl Freeze for ReturnObservation
impl RefUnwindSafe for ReturnObservation
impl Send for ReturnObservation
impl Sync for ReturnObservation
impl Unpin for ReturnObservation
impl UnsafeUnpin for ReturnObservation
impl UnwindSafe for ReturnObservation
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