pub struct FieldObservationEntry {
pub field: Arc<str>,
pub count: u64,
}Expand description
Single field-name counter as exposed via the snapshot API.
The field name is held as Arc<str> so snapshotting only bumps a
refcount rather than copying every key out of the observer’s
internal map. Treat as a string slice for read access:
entry.field.as_ref() or &*entry.field.
Fields§
§field: Arc<str>Dot-joined field path (matches what Event::field_keys returns).
count: u64Number of events that contained this field since the last reset.
Trait Implementations§
Source§impl Clone for FieldObservationEntry
impl Clone for FieldObservationEntry
Source§fn clone(&self) -> FieldObservationEntry
fn clone(&self) -> FieldObservationEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FieldObservationEntry
impl Debug for FieldObservationEntry
impl Eq for FieldObservationEntry
Source§impl PartialEq for FieldObservationEntry
impl PartialEq for FieldObservationEntry
Source§fn eq(&self, other: &FieldObservationEntry) -> bool
fn eq(&self, other: &FieldObservationEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldObservationEntry
Auto Trait Implementations§
impl Freeze for FieldObservationEntry
impl RefUnwindSafe for FieldObservationEntry
impl Send for FieldObservationEntry
impl Sync for FieldObservationEntry
impl Unpin for FieldObservationEntry
impl UnsafeUnpin for FieldObservationEntry
impl UnwindSafe for FieldObservationEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.