Struct yahoo_finance_api::Split
source · pub struct Split {
pub date: u64,
pub numerator: f64,
pub denominator: f64,
pub split_ratio: String,
}
Expand description
This structure simply models a split that has occured.
Fields§
§date: u64
This is the date (timestamp) when the split occured
numerator: f64
Numerator of the split. For instance a 1:5 split means you get 5 share wherever you had one before the split. (Here the numerator is 1 and denom is 5). A reverse split is considered as nothing but a regular split with a numerator > denom.
denominator: f64
Denominator of the split. For instance a 1:5 split means you get 5 share wherever you had one before the split. (Here the numerator is 1 and denom is 5). A reverse split is considered as nothing but a regular split with a numerator > denom.
split_ratio: String
A textual representation of the split.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Split
impl<'de> Deserialize<'de> for Split
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 Split
impl Send for Split
impl Sync for Split
impl Unpin for Split
impl UnwindSafe for Split
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