Struct glean_core::metrics::RemoteSettingsConfig
source · pub struct RemoteSettingsConfig {
pub metrics_enabled: HashMap<String, bool>,
pub pings_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.
pings_enabled: HashMap<String, bool>
This is a HashMap
consisting of ping names as keys and
boolean values representing on override for the default
enabled state of the ping of the same name.
Implementations§
Trait Implementations§
source§impl Clone for RemoteSettingsConfig
impl Clone for RemoteSettingsConfig
source§fn clone(&self) -> RemoteSettingsConfig
fn clone(&self) -> RemoteSettingsConfig
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 RemoteSettingsConfig
impl Debug for RemoteSettingsConfig
source§impl Default for RemoteSettingsConfig
impl Default for RemoteSettingsConfig
source§fn default() -> RemoteSettingsConfig
fn default() -> RemoteSettingsConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RemoteSettingsConfig
impl<'de> Deserialize<'de> for RemoteSettingsConfig
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 RemoteSettingsConfig
impl Serialize for RemoteSettingsConfig
Auto Trait Implementations§
impl Freeze for RemoteSettingsConfig
impl RefUnwindSafe for RemoteSettingsConfig
impl Send for RemoteSettingsConfig
impl Sync for RemoteSettingsConfig
impl Unpin for RemoteSettingsConfig
impl UnwindSafe for RemoteSettingsConfig
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> EncodableKey for Twhere
T: Serialize,
impl<T> EncodableKey for Twhere
T: Serialize,
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
source§impl<V> ObjectSerialize for Vwhere
V: Serialize + for<'de> Deserialize<'de>,
impl<V> ObjectSerialize for Vwhere
V: Serialize + for<'de> Deserialize<'de>,
source§fn from_str(obj: &str) -> Result<V, ObjectError>
fn from_str(obj: &str) -> Result<V, ObjectError>
Deserialize the object from its JSON representation. Read more
source§fn into_serialized_object(self) -> Result<Value, ObjectError>
fn into_serialized_object(self) -> Result<Value, ObjectError>
Serialize this object into a JSON string.