[−][src]Struct prometheus_parser::MatchingGroup
A matching clause's nested grouping clause
Fields
op: MatchingGroupOp
The matching group's operator type (left or right)
labels: Vec<String>
A list of labels to copy to the opposite side of the group operator, i.e.
group_left(foo) copies the label foo
from the right hand side
span: Option<Span>
Methods
impl MatchingGroup
[src]
pub fn new(op: MatchingGroupOp) -> Self
[src]
pub fn left() -> Self
[src]
Creates a new MatchingGroup with the Left op
pub fn right() -> Self
[src]
Creates a new MatchingGroup with the Right op
pub fn op(self, op: MatchingGroupOp) -> Self
[src]
Replaces this Matching's operator
pub fn label<S: Into<String>>(self, label: S) -> Self
[src]
Adds a label key to this MatchingGroup
pub fn labels(self, labels: &[&str]) -> Self
[src]
Replaces this MatchingGroup's labels with the given set
pub fn clear_labels(self) -> Self
[src]
Clears this MatchingGroup's set of labels
pub fn span<S: Into<Span>>(self, span: S) -> Self
[src]
Trait Implementations
impl Clone for MatchingGroup
[src]
fn clone(&self) -> MatchingGroup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MatchingGroup
[src]
impl Display for MatchingGroup
[src]
impl Eq for MatchingGroup
[src]
impl PartialEq<MatchingGroup> for MatchingGroup
[src]
fn eq(&self, other: &MatchingGroup) -> bool
[src]
fn ne(&self, other: &MatchingGroup) -> bool
[src]
impl StructuralEq for MatchingGroup
[src]
impl StructuralPartialEq for MatchingGroup
[src]
Auto Trait Implementations
impl RefUnwindSafe for MatchingGroup
impl Send for MatchingGroup
impl Sync for MatchingGroup
impl Unpin for MatchingGroup
impl UnwindSafe for MatchingGroup
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>,