pub enum PriceAdjustment {
Raw,
Split,
SplitAndDividend,
}Expand description
Whether and how a price series was adjusted for corporate actions.
Structure/extreme detectors that reference historical price levels (pivots, Elliott rule checks, …) assume those levels are the ones that were actually traded. Split/dividend adjustment shifts historical marks to different numbers than what traded at the time.
Variants§
Raw
As-traded, unadjusted prices.
Split
Adjusted for stock splits only.
SplitAndDividend
Adjusted for both splits and dividends.
Trait Implementations§
Source§impl Clone for PriceAdjustment
impl Clone for PriceAdjustment
Source§fn clone(&self) -> PriceAdjustment
fn clone(&self) -> PriceAdjustment
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 moreimpl Copy for PriceAdjustment
Source§impl Debug for PriceAdjustment
impl Debug for PriceAdjustment
Source§impl<'de> Deserialize<'de> for PriceAdjustment
impl<'de> Deserialize<'de> for PriceAdjustment
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
impl Eq for PriceAdjustment
Source§impl PartialEq for PriceAdjustment
impl PartialEq for PriceAdjustment
Source§impl Serialize for PriceAdjustment
impl Serialize for PriceAdjustment
impl StructuralPartialEq for PriceAdjustment
Auto Trait Implementations§
impl Freeze for PriceAdjustment
impl RefUnwindSafe for PriceAdjustment
impl Send for PriceAdjustment
impl Sync for PriceAdjustment
impl Unpin for PriceAdjustment
impl UnsafeUnpin for PriceAdjustment
impl UnwindSafe for PriceAdjustment
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