#[non_exhaustive]pub struct MetricMeasurement { /* private fields */ }Expand description
One numeric metric value and the complete subject that produced it.
Implementations§
Source§impl MetricMeasurement
impl MetricMeasurement
Sourcepub const fn subject(&self) -> &MetricSubject
pub const fn subject(&self) -> &MetricSubject
Returns the measured subject.
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the file path or type name identifying the subject.
Sourcepub fn metric_name(&self) -> &str
pub fn metric_name(&self) -> &str
Returns the stable metric name.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the metric description.
Trait Implementations§
Source§impl Clone for MetricMeasurement
impl Clone for MetricMeasurement
Source§fn clone(&self) -> MetricMeasurement
fn clone(&self) -> MetricMeasurement
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 moreSource§impl Debug for MetricMeasurement
impl Debug for MetricMeasurement
Source§impl PartialEq for MetricMeasurement
impl PartialEq for MetricMeasurement
impl StructuralPartialEq for MetricMeasurement
Auto Trait Implementations§
impl Freeze for MetricMeasurement
impl RefUnwindSafe for MetricMeasurement
impl Send for MetricMeasurement
impl Sync for MetricMeasurement
impl Unpin for MetricMeasurement
impl UnwindSafe for MetricMeasurement
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