#[non_exhaustive]pub struct SchemaInputAttribute {
pub field_name: Option<String>,
pub type: Option<SchemaAttributeType>,
pub group_name: Option<String>,
pub match_key: Option<String>,
}
Expand description
An object containing FieldField
, 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: Option<String>
A string containing the field name.
type: Option<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.
Implementations§
source§impl SchemaInputAttribute
impl SchemaInputAttribute
sourcepub fn field_name(&self) -> Option<&str>
pub fn field_name(&self) -> Option<&str>
A string containing the field name.
sourcepub fn type(&self) -> Option<&SchemaAttributeType>
pub fn type(&self) -> Option<&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<SchemaInputAttribute> for SchemaInputAttribute
impl PartialEq<SchemaInputAttribute> 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 ==
.