#[non_exhaustive]#[repr(i32)]pub enum BarUnit {
Second = 1,
Minute = 2,
Hour = 3,
Day = 4,
Week = 5,
Month = 6,
Tick = 7,
}Expand description
Historical-bar aggregation unit.
The provider’s Unspecified = 0 sentinel is intentionally omitted so a
request must select a concrete aggregation.
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.
Second = 1
Seconds.
Minute = 2
Minutes.
Hour = 3
Hours.
Day = 4
Days.
Week = 5
Weeks.
Month = 6
Months.
Tick = 7
Individual trades (ticks).
Trait Implementations§
impl Copy for BarUnit
Source§impl<'de> Deserialize<'de> for BarUnit
impl<'de> Deserialize<'de> for BarUnit
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 BarUnit
impl StructuralPartialEq for BarUnit
Auto Trait Implementations§
impl Freeze for BarUnit
impl RefUnwindSafe for BarUnit
impl Send for BarUnit
impl Sync for BarUnit
impl Unpin for BarUnit
impl UnsafeUnpin for BarUnit
impl UnwindSafe for BarUnit
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