[−][src]Struct glean_core::CommonMetricData
The common set of data shared across all different metric types.
Fields
name: String
The metric's name.
category: String
The metric's category.
send_in_pings: Vec<String>
List of ping names to include this metric in.
lifetime: Lifetime
The metric's lifetime.
disabled: bool
Whether or not the metric is disabled.
Disabled metrics are never recorded.
dynamic_label: Option<String>
Dynamic label.
When a LabeledMetric
Implementations
impl CommonMetricData
[src]
pub fn new<A: Into<String>, B: Into<String>, C: Into<String>>(
category: A,
name: B,
ping_name: C
) -> CommonMetricData
[src]
category: A,
name: B,
ping_name: C
) -> CommonMetricData
Creates a new metadata object.
pub fn should_record(&self) -> bool
[src]
Whether this metric should be recorded.
pub fn storage_names(&self) -> &[String]
[src]
The list of storages this metric should be recorded into.
Trait Implementations
impl Clone for CommonMetricData
[src]
fn clone(&self) -> CommonMetricData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CommonMetricData
[src]
impl Default for CommonMetricData
[src]
fn default() -> CommonMetricData
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommonMetricData
impl Send for CommonMetricData
impl Sync for CommonMetricData
impl Unpin for CommonMetricData
impl UnwindSafe for CommonMetricData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,