#[non_exhaustive]pub struct NamedEntityDefinitionMetricBuilder { /* private fields */ }
Expand description
A builder for NamedEntityDefinitionMetric
.
Implementations§
source§impl NamedEntityDefinitionMetricBuilder
impl NamedEntityDefinitionMetricBuilder
sourcepub fn aggregation(self, input: NamedEntityAggType) -> Self
pub fn aggregation(self, input: NamedEntityAggType) -> Self
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
.
sourcepub fn set_aggregation(self, input: Option<NamedEntityAggType>) -> Self
pub fn set_aggregation(self, input: Option<NamedEntityAggType>) -> Self
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
.
sourcepub fn get_aggregation(&self) -> &Option<NamedEntityAggType>
pub fn get_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
.
sourcepub fn aggregation_function_parameters(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn aggregation_function_parameters( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to aggregation_function_parameters
.
To override the contents of this collection use set_aggregation_function_parameters
.
The additional parameters for an aggregation function.
sourcepub fn set_aggregation_function_parameters(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_aggregation_function_parameters( self, input: Option<HashMap<String, String>> ) -> Self
The additional parameters for an aggregation function.
sourcepub fn get_aggregation_function_parameters(
&self
) -> &Option<HashMap<String, String>>
pub fn get_aggregation_function_parameters( &self ) -> &Option<HashMap<String, String>>
The additional parameters for an aggregation function.
sourcepub fn build(self) -> NamedEntityDefinitionMetric
pub fn build(self) -> NamedEntityDefinitionMetric
Consumes the builder and constructs a NamedEntityDefinitionMetric
.
Trait Implementations§
source§impl Clone for NamedEntityDefinitionMetricBuilder
impl Clone for NamedEntityDefinitionMetricBuilder
source§fn clone(&self) -> NamedEntityDefinitionMetricBuilder
fn clone(&self) -> NamedEntityDefinitionMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for NamedEntityDefinitionMetricBuilder
impl Default for NamedEntityDefinitionMetricBuilder
source§fn default() -> NamedEntityDefinitionMetricBuilder
fn default() -> NamedEntityDefinitionMetricBuilder
source§impl PartialEq for NamedEntityDefinitionMetricBuilder
impl PartialEq for NamedEntityDefinitionMetricBuilder
source§fn eq(&self, other: &NamedEntityDefinitionMetricBuilder) -> bool
fn eq(&self, other: &NamedEntityDefinitionMetricBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NamedEntityDefinitionMetricBuilder
Auto Trait Implementations§
impl Freeze for NamedEntityDefinitionMetricBuilder
impl RefUnwindSafe for NamedEntityDefinitionMetricBuilder
impl Send for NamedEntityDefinitionMetricBuilder
impl Sync for NamedEntityDefinitionMetricBuilder
impl Unpin for NamedEntityDefinitionMetricBuilder
impl UnwindSafe for NamedEntityDefinitionMetricBuilder
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
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>
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>
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 more