pub enum DateRange {
LastN(u32),
PreviousN(u32),
Between {
from: (u16, u8, u8),
to: RangeEnd,
},
}Expand description
A date range used with Period::Range. Matomo only accepts a single rolling
keyword (lastN/previousN) or an absolute start paired with an absolute or
today/yesterday end — a keyword start like last7,today is rejected, so
it is unrepresentable here.
Variants§
Implementations§
Trait Implementations§
impl Copy for DateRange
impl Eq for DateRange
impl StructuralPartialEq for DateRange
Auto Trait Implementations§
impl Freeze for DateRange
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnsafeUnpin for DateRange
impl UnwindSafe for DateRange
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