#[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 for NamedEntityDefinitionMetric
impl PartialEq 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 Freeze for NamedEntityDefinitionMetric
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.