pub struct TimeBucket {
pub attribute: String,
pub interval: Value,
}Expand description
A groupByTimeBucket query: the attribute and the bucket size.
Fields§
§attribute: StringThe attribute bucketed.
interval: ValueThe bucket size (1m, 5m, 15m, 1h, 1d, 1w, 1M), as the
query holds it ('' when absent).
Trait Implementations§
Source§impl Clone for TimeBucket
impl Clone for TimeBucket
Source§impl Debug for TimeBucket
impl Debug for TimeBucket
Source§impl PartialEq for TimeBucket
impl PartialEq for TimeBucket
impl StructuralPartialEq for TimeBucket
Auto Trait Implementations§
impl !Freeze for TimeBucket
impl Forget for TimeBucket
impl Move for TimeBucket
impl RefUnwindSafe for TimeBucketwhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for TimeBucket
impl Sync for TimeBucket
impl Unpin for TimeBucket
impl UnsafeUnpin for TimeBucketwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static [u8]: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
impl UnwindSafe for TimeBucketwhere
RawVecInner: UnwindSafe,
&'static [u8]: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
Arc<Repr<Object>>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
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