Struct glean_core::metrics::MetricsEnabledConfig
source · pub struct MetricsEnabledConfig {
pub metrics_enabled: HashMap<String, bool>,
}
Expand description
Represents a list of metrics and an associated boolean property indicating if the metric is enabledfrom the remote-settings configuration store. The expected format of this data is stringified JSON in the following format:
{
"category.metric_name": true
}
Fields§
§metrics_enabled: HashMap<String, bool>
This is a HashMap
consisting of base_identifiers as keys
and bool values representing an override for the disabled
property of the metric, only inverted to reduce confusion.
If a particular metric has a value of true
here, it means
the default of the metric will be overriden and set to the
enabled state.
Implementations§
Trait Implementations§
source§impl Clone for MetricsEnabledConfig
impl Clone for MetricsEnabledConfig
source§fn clone(&self) -> MetricsEnabledConfig
fn clone(&self) -> MetricsEnabledConfig
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 MetricsEnabledConfig
impl Debug for MetricsEnabledConfig
source§impl Default for MetricsEnabledConfig
impl Default for MetricsEnabledConfig
source§fn default() -> MetricsEnabledConfig
fn default() -> MetricsEnabledConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MetricsEnabledConfig
impl<'de> Deserialize<'de> for MetricsEnabledConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for MetricsEnabledConfig
impl Serialize for MetricsEnabledConfig
Auto Trait Implementations§
impl RefUnwindSafe for MetricsEnabledConfig
impl Send for MetricsEnabledConfig
impl Sync for MetricsEnabledConfig
impl Unpin for MetricsEnabledConfig
impl UnwindSafe for MetricsEnabledConfig
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