pub struct RenderOpenMetricsConfigBuilder { /* private fields */ }
Implementations§
source§impl RenderOpenMetricsConfigBuilder
impl RenderOpenMetricsConfigBuilder
pub fn new(ty: OpenMetricsType) -> Self
sourcepub fn label(self, key: &str, value: &str) -> Self
pub fn label(self, key: &str, value: &str) -> Self
Add a label to the metric
Note multiple labels for a single metric is supported
sourcepub fn build(self) -> RenderOpenMetricsConfig
pub fn build(self) -> RenderOpenMetricsConfig
Build the config
Trait Implementations§
source§impl Clone for RenderOpenMetricsConfigBuilder
impl Clone for RenderOpenMetricsConfigBuilder
source§fn clone(&self) -> RenderOpenMetricsConfigBuilder
fn clone(&self) -> RenderOpenMetricsConfigBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for RenderOpenMetricsConfigBuilder
impl Send for RenderOpenMetricsConfigBuilder
impl Sync for RenderOpenMetricsConfigBuilder
impl Unpin for RenderOpenMetricsConfigBuilder
impl UnwindSafe for RenderOpenMetricsConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more