#[non_exhaustive]pub struct EntityDetectorConfiguration {
pub entity_types: Option<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: Option<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
sourceimpl EntityDetectorConfiguration
impl EntityDetectorConfiguration
sourcepub fn entity_types(&self) -> Option<&[String]>
pub fn entity_types(&self) -> Option<&[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) -> Option<&[AllowedStatistics]>
pub fn allowed_statistics(&self) -> Option<&[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.
sourceimpl EntityDetectorConfiguration
impl EntityDetectorConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EntityDetectorConfiguration
Trait Implementations
sourceimpl Clone for EntityDetectorConfiguration
impl Clone for EntityDetectorConfiguration
sourcefn clone(&self) -> EntityDetectorConfiguration
fn clone(&self) -> EntityDetectorConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EntityDetectorConfiguration
impl Debug for EntityDetectorConfiguration
sourceimpl PartialEq<EntityDetectorConfiguration> for EntityDetectorConfiguration
impl PartialEq<EntityDetectorConfiguration> for EntityDetectorConfiguration
sourcefn eq(&self, other: &EntityDetectorConfiguration) -> bool
fn eq(&self, other: &EntityDetectorConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EntityDetectorConfiguration) -> bool
fn ne(&self, other: &EntityDetectorConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for EntityDetectorConfiguration
Auto Trait Implementations
impl RefUnwindSafe for EntityDetectorConfiguration
impl Send for EntityDetectorConfiguration
impl Sync for EntityDetectorConfiguration
impl Unpin for EntityDetectorConfiguration
impl UnwindSafe for EntityDetectorConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more