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 duplicate 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 Freeze for RenderOpenMetricsConfigBuilder
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