pub struct TimeBucket {
pub timestamp: DateTime<Utc>,
pub count: usize,
pub event_types: HashMap<String, usize>,
}Expand description
Time bucket with event count
Fields§
§timestamp: DateTime<Utc>§count: usize§event_types: HashMap<String, usize>Trait Implementations§
Source§impl Clone for TimeBucket
impl Clone for TimeBucket
Source§fn clone(&self) -> TimeBucket
fn clone(&self) -> TimeBucket
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 TimeBucket
impl Debug for TimeBucket
Auto Trait Implementations§
impl Freeze for TimeBucket
impl RefUnwindSafe for TimeBucket
impl Send for TimeBucket
impl Sync for TimeBucket
impl Unpin for TimeBucket
impl UnsafeUnpin for TimeBucket
impl UnwindSafe for TimeBucket
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