#[non_exhaustive]pub enum Calendar {
Day,
Week,
Month,
}Expand description
The span of the calendar a bucket covers, in the time zone an aggregate gives with it.
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.
Day
From a local midnight to the next.
Week
From a Monday’s local midnight to the next Monday’s, as ISO 8601 counts weeks.
Month
From the first of a month’s local midnight to the next month’s.
Implementations§
Trait Implementations§
impl Copy for Calendar
impl Eq for Calendar
impl StructuralPartialEq for Calendar
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnsafeUnpin for Calendar
impl UnwindSafe for Calendar
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