pub trait PrometheusSerializable {
// Required method
fn to_prometheus(&self) -> String;
}Required Methods§
Sourcefn to_prometheus(&self) -> String
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".