#[non_exhaustive]pub struct EntityDetectorConfiguration {
pub entity_types: Vec<String>,
pub allowed_statistics: Option<Vec<AllowedStatistics>>,
}
Expand description
Configuration of entity detection for a profile job. When undefined, entity detection is disabled.
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.entity_types: Vec<String>
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.
allowed_statistics: Option<Vec<AllowedStatistics>>
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.
Implementations§
source§impl EntityDetectorConfiguration
impl EntityDetectorConfiguration
sourcepub fn entity_types(&self) -> &[String]
pub fn entity_types(&self) -> &[String]
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) -> &[AllowedStatistics]
pub fn allowed_statistics(&self) -> &[AllowedStatistics]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .allowed_statistics.is_none()
.
source§impl EntityDetectorConfiguration
impl EntityDetectorConfiguration
sourcepub fn builder() -> EntityDetectorConfigurationBuilder
pub fn builder() -> EntityDetectorConfigurationBuilder
Creates a new builder-style object to manufacture EntityDetectorConfiguration
.
Trait Implementations§
source§impl Clone for EntityDetectorConfiguration
impl Clone for EntityDetectorConfiguration
source§fn clone(&self) -> EntityDetectorConfiguration
fn clone(&self) -> EntityDetectorConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityDetectorConfiguration
impl Debug for EntityDetectorConfiguration
source§impl PartialEq for EntityDetectorConfiguration
impl PartialEq for EntityDetectorConfiguration
source§fn eq(&self, other: &EntityDetectorConfiguration) -> bool
fn eq(&self, other: &EntityDetectorConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.