pub enum Aggregator<N, K, L, W, A>{
Binary,
Names(Option<BTreeSet<N>>),
Kinds(Option<BTreeSet<K>>),
Labels(Option<BTreeSet<L>>),
Weights {
fields: Option<BTreeSet<W>>,
absolute: bool,
},
Annotations(Option<BTreeSet<A>>),
}Expand description
What to aggregate by.
Variants§
Binary
Whether any objects have been counted.
Names(Option<BTreeSet<N>>)
Aggregated occurrences of these kinds. None means all.
Kinds(Option<BTreeSet<K>>)
Aggregated occurrences of these kinds. None means all.
Labels(Option<BTreeSet<L>>)
Aggregated occurrences of these labels. None means all.
Weights
Aggregate weight value.
Annotations(Option<BTreeSet<A>>)
Aggregate annotation key occurrence.
Implementations§
Source§impl<N, K, L, W, A> Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Aggregator<N, K, L, W, A>
Sourcepub fn all_labels() -> Self
pub fn all_labels() -> Self
Aggregator for all labels.
Sourcepub fn all_weights(absolute: bool) -> Self
pub fn all_weights(absolute: bool) -> Self
Aggregator for all weights.
Sourcepub fn for_weight(value: W, absolute: bool) -> Self
pub fn for_weight(value: W, absolute: bool) -> Self
Aggregator for a single weight.
Sourcepub fn all_annotations() -> Self
pub fn all_annotations() -> Self
Aggregator for all annotations.
Sourcepub fn for_annotation(value: A) -> Self
pub fn for_annotation(value: A) -> Self
Aggregator for a single annotation.
Trait Implementations§
Source§impl<N, K, L, W, A> Clone for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Clone for Aggregator<N, K, L, W, A>
Source§fn clone(&self) -> Aggregator<N, K, L, W, A>
fn clone(&self) -> Aggregator<N, K, L, W, A>
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<N, K, L, W, A> Debug for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Debug for Aggregator<N, K, L, W, A>
Source§impl<N, K, L, W, A> Default for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Default for Aggregator<N, K, L, W, A>
Source§fn default() -> Aggregator<N, K, L, W, A>
fn default() -> Aggregator<N, K, L, W, A>
Returns the “default value” for a type. Read more
Source§impl<'de, N, K, L, W, A> Deserialize<'de> for Aggregator<N, K, L, W, A>where
N: Field + Deserialize<'de>,
K: Field + Deserialize<'de>,
L: Field + Deserialize<'de>,
W: Field + Deserialize<'de>,
A: Field + Deserialize<'de>,
impl<'de, N, K, L, W, A> Deserialize<'de> for Aggregator<N, K, L, W, A>where
N: Field + Deserialize<'de>,
K: Field + Deserialize<'de>,
L: Field + Deserialize<'de>,
W: Field + Deserialize<'de>,
A: Field + Deserialize<'de>,
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<N, K, L, W, A> PartialEq for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> PartialEq for Aggregator<N, K, L, W, A>
Source§impl<N, K, L, W, A> Serialize for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Serialize for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> StructuralPartialEq for Aggregator<N, K, L, W, A>
Auto Trait Implementations§
impl<N, K, L, W, A> Freeze for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> RefUnwindSafe for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Send for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Sync for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> Unpin for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> UnsafeUnpin for Aggregator<N, K, L, W, A>
impl<N, K, L, W, A> UnwindSafe for Aggregator<N, K, L, W, A>
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