pub struct TimerMetadata {
pub label: Option<String>,
pub tags: BTreeMap<String, String>,
}Expand description
Metadata attached to a timer for observability.
Fields§
§label: Option<String>Optional human-readable label for the timer.
Arbitrary key-value metadata associated with the timer.
Trait Implementations§
Source§impl Clone for TimerMetadata
impl Clone for TimerMetadata
Source§fn clone(&self) -> TimerMetadata
fn clone(&self) -> TimerMetadata
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 moreSource§impl Debug for TimerMetadata
impl Debug for TimerMetadata
Source§impl Default for TimerMetadata
impl Default for TimerMetadata
Source§fn default() -> TimerMetadata
fn default() -> TimerMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimerMetadata
impl PartialEq for TimerMetadata
impl Eq for TimerMetadata
impl StructuralPartialEq for TimerMetadata
Auto Trait Implementations§
impl Freeze for TimerMetadata
impl RefUnwindSafe for TimerMetadata
impl Send for TimerMetadata
impl Sync for TimerMetadata
impl Unpin for TimerMetadata
impl UnsafeUnpin for TimerMetadata
impl UnwindSafe for TimerMetadata
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