pub struct Builder { /* private fields */ }
Expand description
A builder for EntityDetectorConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn entity_types(self, input: impl Into<String>) -> Self
pub fn entity_types(self, input: impl Into<String>) -> Self
Appends an item to entity_types
.
To override the contents of this collection use set_entity_types
.
Entity types to detect. Can be any of the following:
-
USA_SSN
-
EMAIL
-
USA_ITIN
-
USA_PASSPORT_NUMBER
-
PHONE_NUMBER
-
USA_DRIVING_LICENSE
-
BANK_ACCOUNT
-
CREDIT_CARD
-
IP_ADDRESS
-
MAC_ADDRESS
-
USA_DEA_NUMBER
-
USA_HCPCS_CODE
-
USA_NATIONAL_PROVIDER_IDENTIFIER
-
USA_NATIONAL_DRUG_CODE
-
USA_HEALTH_INSURANCE_CLAIM_NUMBER
-
USA_MEDICARE_BENEFICIARY_IDENTIFIER
-
USA_CPT_CODE
-
PERSON_NAME
-
DATE
The Entity type group USA_ALL is also supported, and includes all of the above entity types except PERSON_NAME and DATE.
sourcepub fn set_entity_types(self, input: Option<Vec<String>>) -> Self
pub fn set_entity_types(self, input: Option<Vec<String>>) -> Self
Entity types to detect. Can be any of the following:
-
USA_SSN
-
EMAIL
-
USA_ITIN
-
USA_PASSPORT_NUMBER
-
PHONE_NUMBER
-
USA_DRIVING_LICENSE
-
BANK_ACCOUNT
-
CREDIT_CARD
-
IP_ADDRESS
-
MAC_ADDRESS
-
USA_DEA_NUMBER
-
USA_HCPCS_CODE
-
USA_NATIONAL_PROVIDER_IDENTIFIER
-
USA_NATIONAL_DRUG_CODE
-
USA_HEALTH_INSURANCE_CLAIM_NUMBER
-
USA_MEDICARE_BENEFICIARY_IDENTIFIER
-
USA_CPT_CODE
-
PERSON_NAME
-
DATE
The Entity type group USA_ALL is also supported, and includes all of the above entity types except PERSON_NAME and DATE.
sourcepub fn allowed_statistics(self, input: AllowedStatistics) -> Self
pub fn allowed_statistics(self, input: AllowedStatistics) -> Self
Appends an item to allowed_statistics
.
To override the contents of this collection use set_allowed_statistics
.
Configuration of statistics that are allowed to be run on columns that contain detected entities. When undefined, no statistics will be computed on columns that contain detected entities.
sourcepub fn set_allowed_statistics(
self,
input: Option<Vec<AllowedStatistics>>
) -> Self
pub fn set_allowed_statistics(
self,
input: Option<Vec<AllowedStatistics>>
) -> Self
Configuration of statistics that are allowed to be run on columns that contain detected entities. When undefined, no statistics will be computed on columns that contain detected entities.
sourcepub fn build(self) -> EntityDetectorConfiguration
pub fn build(self) -> EntityDetectorConfiguration
Consumes the builder and constructs a EntityDetectorConfiguration
.