[][src]Struct elasticsearch_exporter::metric::Metric

pub struct Metric(_, _);

Metric consisting of Key and parsed metric type

Implementations

impl Metric[src]

pub fn key(&self) -> &str[src]

Return metric key

pub fn string_ref(&self) -> &String[src]

String reference

pub fn metric_type(&self) -> &MetricType[src]

Get metric type

Trait Implementations

impl Debug for Metric[src]

impl PartialEq<Metric> for Metric[src]

impl StructuralPartialEq for Metric[src]

impl<'s> TryFrom<(&'s str, &'s Value)> for Metric[src]

type Error = MetricError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Metric

impl Send for Metric

impl Sync for Metric

impl Unpin for Metric

impl UnwindSafe for Metric

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<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.