pub enum HistoryPeriod {
Last,
Hour,
Day,
Week,
Month,
Forever,
}Variants§
Implementations§
Source§impl HistoryPeriod
impl HistoryPeriod
pub fn last_valid_datapoint(&self) -> DateTime<Utc>
Trait Implementations§
Source§impl Clone for HistoryPeriod
impl Clone for HistoryPeriod
Source§fn clone(&self) -> HistoryPeriod
fn clone(&self) -> HistoryPeriod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HistoryPeriod
impl Debug for HistoryPeriod
Source§impl Default for HistoryPeriod
impl Default for HistoryPeriod
Source§impl<'de> Deserialize<'de> for HistoryPeriod
impl<'de> Deserialize<'de> for HistoryPeriod
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
Source§impl PartialEq for HistoryPeriod
impl PartialEq for HistoryPeriod
Source§impl Serialize for HistoryPeriod
impl Serialize for HistoryPeriod
impl StructuralPartialEq for HistoryPeriod
Auto Trait Implementations§
impl Freeze for HistoryPeriod
impl RefUnwindSafe for HistoryPeriod
impl Send for HistoryPeriod
impl Sync for HistoryPeriod
impl Unpin for HistoryPeriod
impl UnwindSafe for HistoryPeriod
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