#[non_exhaustive]pub struct NamedEntityDefinitionMetric {
pub aggregation: Option<NamedEntityAggType>,
pub aggregation_function_parameters: Option<HashMap<String, String>>,
}Expand description
A structure that represents a metric.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.aggregation: Option<NamedEntityAggType>The aggregation of a named entity. Valid values for this structure are SUM, MIN, MAX, COUNT, AVERAGE, DISTINCT_COUNT, STDEV, STDEVP, VAR, VARP, PERCENTILE, MEDIAN, and CUSTOM.
aggregation_function_parameters: Option<HashMap<String, String>>The additional parameters for an aggregation function.
Implementations§
source§impl NamedEntityDefinitionMetric
impl NamedEntityDefinitionMetric
sourcepub fn aggregation(&self) -> Option<&NamedEntityAggType>
pub fn aggregation(&self) -> Option<&NamedEntityAggType>
The aggregation of a named entity. Valid values for this structure are SUM, MIN, MAX, COUNT, AVERAGE, DISTINCT_COUNT, STDEV, STDEVP, VAR, VARP, PERCENTILE, MEDIAN, and CUSTOM.
source§impl NamedEntityDefinitionMetric
impl NamedEntityDefinitionMetric
sourcepub fn builder() -> NamedEntityDefinitionMetricBuilder
pub fn builder() -> NamedEntityDefinitionMetricBuilder
Creates a new builder-style object to manufacture NamedEntityDefinitionMetric.
Trait Implementations§
source§impl Clone for NamedEntityDefinitionMetric
impl Clone for NamedEntityDefinitionMetric
source§fn clone(&self) -> NamedEntityDefinitionMetric
fn clone(&self) -> NamedEntityDefinitionMetric
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 NamedEntityDefinitionMetric
impl Debug for NamedEntityDefinitionMetric
source§impl PartialEq<NamedEntityDefinitionMetric> for NamedEntityDefinitionMetric
impl PartialEq<NamedEntityDefinitionMetric> for NamedEntityDefinitionMetric
source§fn eq(&self, other: &NamedEntityDefinitionMetric) -> bool
fn eq(&self, other: &NamedEntityDefinitionMetric) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NamedEntityDefinitionMetric
Auto Trait Implementations§
impl RefUnwindSafe for NamedEntityDefinitionMetric
impl Send for NamedEntityDefinitionMetric
impl Sync for NamedEntityDefinitionMetric
impl Unpin for NamedEntityDefinitionMetric
impl UnwindSafe for NamedEntityDefinitionMetric
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