[−][src]Struct prometheus_parser::Matching
An operator matching clause
Fields
op: MatchingOp
labels: Vec<String>
A list of labels to which the operator is applied
group: Option<MatchingGroup>
An optional grouping clause for many-to-one and one-to-many vector matches
span: Option<Span>
Methods
impl Matching
[src]
pub fn new(op: MatchingOp) -> Self
[src]
pub fn on() -> Self
[src]
Creates a Matching cause with the On operator
pub fn ignoring() -> Self
[src]
Creates a Matching clause using the Ignoring operator
pub fn op(self, op: MatchingOp) -> Self
[src]
Replaces this Matching's operator
pub fn label<S: Into<String>>(self, label: S) -> Self
[src]
Adds a label key to this Matching
pub fn labels(self, labels: &[&str]) -> Self
[src]
Replaces this Matching's labels with the given set
pub fn clear_labels(self) -> Self
[src]
Clears this Matching's set of labels
pub fn group(self, group: MatchingGroup) -> Self
[src]
Sets or replaces this Matching's group clause
pub fn clear_group(self) -> Self
[src]
Clears this Matching's group clause
pub fn span<S: Into<Span>>(self, span: S) -> Self
[src]
Trait Implementations
impl Clone for Matching
[src]
impl Debug for Matching
[src]
impl Display for Matching
[src]
impl Eq for Matching
[src]
impl PartialEq<Matching> for Matching
[src]
impl StructuralEq for Matching
[src]
impl StructuralPartialEq for Matching
[src]
Auto Trait Implementations
impl RefUnwindSafe for Matching
impl Send for Matching
impl Sync for Matching
impl Unpin for Matching
impl UnwindSafe for Matching
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>,