#[non_exhaustive]pub struct SchemaInputAttributeBuilder { /* private fields */ }
Expand description
A builder for SchemaInputAttribute
.
Implementations§
source§impl SchemaInputAttributeBuilder
impl SchemaInputAttributeBuilder
sourcepub fn field_name(self, input: impl Into<String>) -> Self
pub fn field_name(self, input: impl Into<String>) -> Self
A string containing the field name.
This field is required.sourcepub fn set_field_name(self, input: Option<String>) -> Self
pub fn set_field_name(self, input: Option<String>) -> Self
A string containing the field name.
sourcepub fn get_field_name(&self) -> &Option<String>
pub fn get_field_name(&self) -> &Option<String>
A string containing the field name.
sourcepub fn type(self, input: SchemaAttributeType) -> Self
pub fn type(self, input: SchemaAttributeType) -> Self
The type of the attribute, selected from a list of values.
This field is required.sourcepub fn set_type(self, input: Option<SchemaAttributeType>) -> Self
pub fn set_type(self, input: Option<SchemaAttributeType>) -> Self
The type of the attribute, selected from a list of values.
sourcepub fn get_type(&self) -> &Option<SchemaAttributeType>
pub fn get_type(&self) -> &Option<SchemaAttributeType>
The type of the attribute, selected from a list of values.
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
Instruct Entity Resolution to combine several columns into a unified column with the identical attribute type. For example, when working with columns such as first_name, middle_name, and last_name, assigning them a common GroupName
will prompt Entity Resolution to concatenate them into a single value.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
Instruct Entity Resolution to combine several columns into a unified column with the identical attribute type. For example, when working with columns such as first_name, middle_name, and last_name, assigning them a common GroupName
will prompt Entity Resolution to concatenate them into a single value.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
Instruct Entity Resolution to combine several columns into a unified column with the identical attribute type. For example, when working with columns such as first_name, middle_name, and last_name, assigning them a common GroupName
will prompt Entity Resolution to concatenate them into a single value.
sourcepub fn match_key(self, input: impl Into<String>) -> Self
pub fn match_key(self, input: impl Into<String>) -> Self
A key that allows grouping of multiple input attributes into a unified matching group. For example, let's consider a scenario where the source table contains various addresses, such as business_address
and shipping_address
. By assigning the MatchKey
Address to both attributes, Entity Resolution will match records across these fields to create a consolidated matching group. If no MatchKey
is specified for a column, it won't be utilized for matching purposes but will still be included in the output table.
sourcepub fn set_match_key(self, input: Option<String>) -> Self
pub fn set_match_key(self, input: Option<String>) -> Self
A key that allows grouping of multiple input attributes into a unified matching group. For example, let's consider a scenario where the source table contains various addresses, such as business_address
and shipping_address
. By assigning the MatchKey
Address to both attributes, Entity Resolution will match records across these fields to create a consolidated matching group. If no MatchKey
is specified for a column, it won't be utilized for matching purposes but will still be included in the output table.
sourcepub fn get_match_key(&self) -> &Option<String>
pub fn get_match_key(&self) -> &Option<String>
A key that allows grouping of multiple input attributes into a unified matching group. For example, let's consider a scenario where the source table contains various addresses, such as business_address
and shipping_address
. By assigning the MatchKey
Address to both attributes, Entity Resolution will match records across these fields to create a consolidated matching group. If no MatchKey
is specified for a column, it won't be utilized for matching purposes but will still be included in the output table.
sourcepub fn sub_type(self, input: impl Into<String>) -> Self
pub fn sub_type(self, input: impl Into<String>) -> Self
The subtype of the attribute, selected from a list of values.
sourcepub fn set_sub_type(self, input: Option<String>) -> Self
pub fn set_sub_type(self, input: Option<String>) -> Self
The subtype of the attribute, selected from a list of values.
sourcepub fn get_sub_type(&self) -> &Option<String>
pub fn get_sub_type(&self) -> &Option<String>
The subtype of the attribute, selected from a list of values.
sourcepub fn build(self) -> Result<SchemaInputAttribute, BuildError>
pub fn build(self) -> Result<SchemaInputAttribute, BuildError>
Consumes the builder and constructs a SchemaInputAttribute
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SchemaInputAttributeBuilder
impl Clone for SchemaInputAttributeBuilder
source§fn clone(&self) -> SchemaInputAttributeBuilder
fn clone(&self) -> SchemaInputAttributeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchemaInputAttributeBuilder
impl Debug for SchemaInputAttributeBuilder
source§impl Default for SchemaInputAttributeBuilder
impl Default for SchemaInputAttributeBuilder
source§fn default() -> SchemaInputAttributeBuilder
fn default() -> SchemaInputAttributeBuilder
source§impl PartialEq for SchemaInputAttributeBuilder
impl PartialEq for SchemaInputAttributeBuilder
source§fn eq(&self, other: &SchemaInputAttributeBuilder) -> bool
fn eq(&self, other: &SchemaInputAttributeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.