#[non_exhaustive]pub struct NamedEntityDefinitionBuilder { /* private fields */ }Expand description
A builder for NamedEntityDefinition.
Implementations§
source§impl NamedEntityDefinitionBuilder
impl NamedEntityDefinitionBuilder
sourcepub fn field_name(self, input: impl Into<String>) -> Self
pub fn field_name(self, input: impl Into<String>) -> Self
The name of the entity.
sourcepub fn set_field_name(self, input: Option<String>) -> Self
pub fn set_field_name(self, input: Option<String>) -> Self
The name of the entity.
sourcepub fn get_field_name(&self) -> &Option<String>
pub fn get_field_name(&self) -> &Option<String>
The name of the entity.
sourcepub fn property_name(self, input: impl Into<String>) -> Self
pub fn property_name(self, input: impl Into<String>) -> Self
The property name to be used for the named entity.
sourcepub fn set_property_name(self, input: Option<String>) -> Self
pub fn set_property_name(self, input: Option<String>) -> Self
The property name to be used for the named entity.
sourcepub fn get_property_name(&self) -> &Option<String>
pub fn get_property_name(&self) -> &Option<String>
The property name to be used for the named entity.
sourcepub fn property_role(self, input: PropertyRole) -> Self
pub fn property_role(self, input: PropertyRole) -> Self
The property role. Valid values for this structure are PRIMARY and ID.
sourcepub fn set_property_role(self, input: Option<PropertyRole>) -> Self
pub fn set_property_role(self, input: Option<PropertyRole>) -> Self
The property role. Valid values for this structure are PRIMARY and ID.
sourcepub fn get_property_role(&self) -> &Option<PropertyRole>
pub fn get_property_role(&self) -> &Option<PropertyRole>
The property role. Valid values for this structure are PRIMARY and ID.
sourcepub fn property_usage(self, input: PropertyUsage) -> Self
pub fn property_usage(self, input: PropertyUsage) -> Self
The property usage. Valid values for this structure are INHERIT, DIMENSION, and MEASURE.
sourcepub fn set_property_usage(self, input: Option<PropertyUsage>) -> Self
pub fn set_property_usage(self, input: Option<PropertyUsage>) -> Self
The property usage. Valid values for this structure are INHERIT, DIMENSION, and MEASURE.
sourcepub fn get_property_usage(&self) -> &Option<PropertyUsage>
pub fn get_property_usage(&self) -> &Option<PropertyUsage>
The property usage. Valid values for this structure are INHERIT, DIMENSION, and MEASURE.
sourcepub fn metric(self, input: NamedEntityDefinitionMetric) -> Self
pub fn metric(self, input: NamedEntityDefinitionMetric) -> Self
The definition of a metric.
sourcepub fn set_metric(self, input: Option<NamedEntityDefinitionMetric>) -> Self
pub fn set_metric(self, input: Option<NamedEntityDefinitionMetric>) -> Self
The definition of a metric.
sourcepub fn get_metric(&self) -> &Option<NamedEntityDefinitionMetric>
pub fn get_metric(&self) -> &Option<NamedEntityDefinitionMetric>
The definition of a metric.
sourcepub fn build(self) -> NamedEntityDefinition
pub fn build(self) -> NamedEntityDefinition
Consumes the builder and constructs a NamedEntityDefinition.
Trait Implementations§
source§impl Clone for NamedEntityDefinitionBuilder
impl Clone for NamedEntityDefinitionBuilder
source§fn clone(&self) -> NamedEntityDefinitionBuilder
fn clone(&self) -> NamedEntityDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for NamedEntityDefinitionBuilder
impl Debug for NamedEntityDefinitionBuilder
source§impl Default for NamedEntityDefinitionBuilder
impl Default for NamedEntityDefinitionBuilder
source§fn default() -> NamedEntityDefinitionBuilder
fn default() -> NamedEntityDefinitionBuilder
source§impl PartialEq for NamedEntityDefinitionBuilder
impl PartialEq for NamedEntityDefinitionBuilder
source§fn eq(&self, other: &NamedEntityDefinitionBuilder) -> bool
fn eq(&self, other: &NamedEntityDefinitionBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for NamedEntityDefinitionBuilder
Auto Trait Implementations§
impl Freeze for NamedEntityDefinitionBuilder
impl RefUnwindSafe for NamedEntityDefinitionBuilder
impl Send for NamedEntityDefinitionBuilder
impl Sync for NamedEntityDefinitionBuilder
impl Unpin for NamedEntityDefinitionBuilder
impl UnwindSafe for NamedEntityDefinitionBuilder
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