#[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
A string that instructs 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
A string that instructs 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>
A string that instructs 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, consider a scenario where the source table contains various addresses, such as business_address
and shipping_address
. By assigning a matchKey
called 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, consider a scenario where the source table contains various addresses, such as business_address
and shipping_address
. By assigning a matchKey
called 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, consider a scenario where the source table contains various addresses, such as business_address
and shipping_address
. By assigning a matchKey
called 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 ==
.impl StructuralPartialEq for SchemaInputAttributeBuilder
Auto Trait Implementations§
impl Freeze for SchemaInputAttributeBuilder
impl RefUnwindSafe for SchemaInputAttributeBuilder
impl Send for SchemaInputAttributeBuilder
impl Sync for SchemaInputAttributeBuilder
impl Unpin for SchemaInputAttributeBuilder
impl UnwindSafe for SchemaInputAttributeBuilder
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