pub struct DatadogOptions {
pub observation_metric_type: ObservationMetricType,
pub namespace: Option<String>,
}Expand description
Construction options of a DatadogObserver.
Fields§
§observation_metric_type: ObservationMetricTypeWhether observations go to DogStatsD histograms or distributions.
namespace: Option<String>Metric-name namespace; unrelated to the cache namespace label.
None selects DEFAULT_NAMESPACE; an explicit empty string is an error.
Implementations§
Source§impl DatadogOptions
impl DatadogOptions
Sourcepub fn new(observation_metric_type: ObservationMetricType) -> Self
pub fn new(observation_metric_type: ObservationMetricType) -> Self
Options under the default metric-name namespace, DEFAULT_NAMESPACE.
Sourcepub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
Set the metric-name namespace; it must satisfy is_valid_namespace.
Trait Implementations§
Source§impl Clone for DatadogOptions
impl Clone for DatadogOptions
Source§fn clone(&self) -> DatadogOptions
fn clone(&self) -> DatadogOptions
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 DatadogOptions
impl Debug for DatadogOptions
impl Eq for DatadogOptions
Source§impl PartialEq for DatadogOptions
impl PartialEq for DatadogOptions
Source§fn eq(&self, other: &DatadogOptions) -> bool
fn eq(&self, other: &DatadogOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DatadogOptions
Auto Trait Implementations§
impl Freeze for DatadogOptions
impl RefUnwindSafe for DatadogOptions
impl Send for DatadogOptions
impl Sync for DatadogOptions
impl Unpin for DatadogOptions
impl UnsafeUnpin for DatadogOptions
impl UnwindSafe for DatadogOptions
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.