#[non_exhaustive]pub enum PivotTimeframe {
Auto,
Daily,
Weekly,
Monthly,
Quarterly,
Yearly,
TwoYears,
ThreeYears,
FiveYears,
TenYears,
}Expand description
The calendar period of each set of pivots.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
By chart interval: daily up to 15 minutes, weekly below a day, monthly below a week, yearly from a week.
Daily
Each trading day.
Weekly
Each ISO week.
Monthly
Each calendar month.
Quarterly
Each calendar quarter.
Yearly
Each calendar year.
TwoYears
Each two calendar years, starting in an even year.
ThreeYears
Each three calendar years, starting in a year divisible by 3.
FiveYears
Each five calendar years, starting in a year divisible by 5.
TenYears
Each decade, 2020 to 2029 for example.
Trait Implementations§
Source§impl Clone for PivotTimeframe
impl Clone for PivotTimeframe
Source§fn clone(&self) -> PivotTimeframe
fn clone(&self) -> PivotTimeframe
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 PivotTimeframe
Source§impl Debug for PivotTimeframe
impl Debug for PivotTimeframe
Source§impl Default for PivotTimeframe
impl Default for PivotTimeframe
Source§fn default() -> PivotTimeframe
fn default() -> PivotTimeframe
Returns the “default value” for a type. Read more
impl Eq for PivotTimeframe
Source§impl PartialEq for PivotTimeframe
impl PartialEq for PivotTimeframe
impl StructuralPartialEq for PivotTimeframe
Auto Trait Implementations§
impl Freeze for PivotTimeframe
impl RefUnwindSafe for PivotTimeframe
impl Send for PivotTimeframe
impl Sync for PivotTimeframe
impl Unpin for PivotTimeframe
impl UnsafeUnpin for PivotTimeframe
impl UnwindSafe for PivotTimeframe
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more