#[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 ==.