pub struct CapitalGain {
pub amount: f64,
pub date: i64,
}Expand description
This structure simply models a capital gain which has been recorded.
Fields§
§amount: f64This is the amount of capital gain distributed by the fund
date: i64This is the recorded date of the capital gain
Trait Implementations§
Source§impl Clone for CapitalGain
impl Clone for CapitalGain
Source§fn clone(&self) -> CapitalGain
fn clone(&self) -> CapitalGain
Returns a duplicate of the value. Read more
1.0.0 · 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 CapitalGain
impl Debug for CapitalGain
Source§impl<'de> Deserialize<'de> for CapitalGain
impl<'de> Deserialize<'de> for CapitalGain
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 CapitalGain
impl RefUnwindSafe for CapitalGain
impl Send for CapitalGain
impl Sync for CapitalGain
impl Unpin for CapitalGain
impl UnwindSafe for CapitalGain
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