pub enum Range {
FromTo(u64, u64),
OneDay,
FiveDays,
OneMonth,
ThreeMonths,
SixMonths,
YearToDate,
OneYear,
FiveYears,
All,
}Expand description
Data range specifier for chart subscriptions.
Determines how much historical data to request. FromTo(u64, u64) specifies
a custom Unix-timestamp range; the named variants are convenience presets.
Variants§
Implementations§
Source§impl Range
impl Range
pub fn from_to(from: u64, to: u64) -> Self
pub fn one_day() -> Self
pub fn five_days() -> Self
pub fn one_month() -> Self
pub fn three_months() -> Self
pub fn six_months() -> Self
pub fn year_to_date() -> Self
pub fn one_year() -> Self
pub fn five_years() -> Self
pub fn all() -> Self
Trait Implementations§
impl Copy for Range
Source§impl<'de> Deserialize<'de> for Range
impl<'de> Deserialize<'de> for Range
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 Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
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