#[non_exhaustive]pub struct SchemaInputAttribute {
pub field_name: String,
pub type: SchemaAttributeType,
pub group_name: Option<String>,
pub match_key: Option<String>,
pub sub_type: Option<String>,
}
Expand description
An object containing FieldName
, Type
, GroupName
, and MatchKey
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.field_name: String
A string containing the field name.
type: SchemaAttributeType
The type of the attribute, selected from a list of values.
group_name: 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.
match_key: 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.
sub_type: Option<String>
The subtype of the attribute, selected from a list of values.
Implementations§
source§impl SchemaInputAttribute
impl SchemaInputAttribute
sourcepub fn field_name(&self) -> &str
pub fn field_name(&self) -> &str
A string containing the field name.
sourcepub fn type(&self) -> &SchemaAttributeType
pub fn type(&self) -> &SchemaAttributeType
The type of the attribute, selected from a list of values.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
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) -> Option<&str>
pub fn match_key(&self) -> Option<&str>
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.
source§impl SchemaInputAttribute
impl SchemaInputAttribute
sourcepub fn builder() -> SchemaInputAttributeBuilder
pub fn builder() -> SchemaInputAttributeBuilder
Creates a new builder-style object to manufacture SchemaInputAttribute
.
Trait Implementations§
source§impl Clone for SchemaInputAttribute
impl Clone for SchemaInputAttribute
source§fn clone(&self) -> SchemaInputAttribute
fn clone(&self) -> SchemaInputAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchemaInputAttribute
impl Debug for SchemaInputAttribute
source§impl PartialEq for SchemaInputAttribute
impl PartialEq for SchemaInputAttribute
source§fn eq(&self, other: &SchemaInputAttribute) -> bool
fn eq(&self, other: &SchemaInputAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.