[−][src]Struct prometheus_parser::Aggregation
A function aggregation clause.
Not all functions can be aggregated, but this library currently does not attempt to validate this sort of usage.
Fields
op: AggregationOp
labels: Vec<String>
span: Option<Span>
Methods
impl Aggregation
[src]
pub fn new(op: AggregationOp) -> Self
[src]
pub fn by() -> Self
[src]
pub fn without() -> Self
[src]
pub fn op(self, op: AggregationOp) -> Self
[src]
Replaces this Aggregation's operator
pub fn label<S: Into<String>>(self, label: S) -> Self
[src]
Adds a label key to this Aggregation
pub fn labels(self, labels: &[&str]) -> Self
[src]
Replaces this Aggregation's labels with the given set
pub fn clear_labels(self) -> Self
[src]
Clear this Matching's set of labels
pub fn span<S: Into<Span>>(self, span: S) -> Self
[src]
Trait Implementations
impl Clone for Aggregation
[src]
fn clone(&self) -> Aggregation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Aggregation
[src]
impl Display for Aggregation
[src]
impl Eq for Aggregation
[src]
impl PartialEq<Aggregation> for Aggregation
[src]
fn eq(&self, other: &Aggregation) -> bool
[src]
fn ne(&self, other: &Aggregation) -> bool
[src]
impl StructuralEq for Aggregation
[src]
impl StructuralPartialEq for Aggregation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnwindSafe for Aggregation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,