Skip to main content

PrometheusSerializable

Trait PrometheusSerializable 

Source
pub trait PrometheusSerializable {
    // Required method
    fn to_prometheus(&self) -> String;
}

Required Methods§

Source

fn to_prometheus(&self) -> String

Convert the implementing type into a Prometheus exposition format string.

§Returns

A String containing the serialized representation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: PrometheusSerializable, B: PrometheusSerializable> PrometheusSerializable for (A, B)

Source§

impl<T: PrometheusSerializable> PrometheusSerializable for &T

Implementors§