Enum metrics_exporter_prometheus::Matcher[][src]

pub enum Matcher {
    Full(String),
    Prefix(String),
    Suffix(String),
}

Matches a metric name in a specific way.

Used for specifying overrides for buckets, allowing a default set of histogram buckets to be specified while adjusting the buckets that get used for specific metrics.

Variants

Full(String)

Matches the entire metric name.

Prefix(String)

Matches the beginning of the metric name.

Suffix(String)

Matches the end of the metric name.

Implementations

impl Matcher[src]

pub fn matches(&self, key: &str) -> bool[src]

Checks if the given key matches this matcher.

Trait Implementations

impl Clone for Matcher[src]

impl Debug for Matcher[src]

impl Eq for Matcher[src]

impl Hash for Matcher[src]

impl Ord for Matcher[src]

impl PartialEq<Matcher> for Matcher[src]

impl PartialOrd<Matcher> for Matcher[src]

impl StructuralEq for Matcher[src]

impl StructuralPartialEq for Matcher[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.