Struct yahoo_finance_api::Dividend
source · pub struct Dividend {
pub amount: f64,
pub date: u64,
}
Expand description
This structure simply models a dividend which has been recorded.
Fields§
§amount: f64
This is the price of the dividend
date: u64
This is the ex-dividend date
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dividend
impl<'de> Deserialize<'de> for Dividend
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 RefUnwindSafe for Dividend
impl Send for Dividend
impl Sync for Dividend
impl Unpin for Dividend
impl UnwindSafe for Dividend
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