#[non_exhaustive]pub struct CustomEntityType {
pub name: String,
pub regex_string: String,
pub context_words: Option<Vec<String>>,
}Expand description
An object representing a custom pattern for detecting sensitive data across the columns and rows of your structured data.
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.name: StringA name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
regex_string: StringA regular expression string that is used for detecting sensitive data in a custom pattern.
context_words: Option<Vec<String>>A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
Implementations§
Source§impl CustomEntityType
impl CustomEntityType
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
Sourcepub fn regex_string(&self) -> &str
pub fn regex_string(&self) -> &str
A regular expression string that is used for detecting sensitive data in a custom pattern.
Sourcepub fn context_words(&self) -> &[String]
pub fn context_words(&self) -> &[String]
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .context_words.is_none().
Source§impl CustomEntityType
impl CustomEntityType
Sourcepub fn builder() -> CustomEntityTypeBuilder
pub fn builder() -> CustomEntityTypeBuilder
Creates a new builder-style object to manufacture CustomEntityType.
Trait Implementations§
Source§impl Clone for CustomEntityType
impl Clone for CustomEntityType
Source§fn clone(&self) -> CustomEntityType
fn clone(&self) -> CustomEntityType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CustomEntityType
impl Debug for CustomEntityType
Source§impl PartialEq for CustomEntityType
impl PartialEq for CustomEntityType
Source§fn eq(&self, other: &CustomEntityType) -> bool
fn eq(&self, other: &CustomEntityType) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CustomEntityType
Auto Trait Implementations§
impl Freeze for CustomEntityType
impl RefUnwindSafe for CustomEntityType
impl Send for CustomEntityType
impl Sync for CustomEntityType
impl Unpin for CustomEntityType
impl UnsafeUnpin for CustomEntityType
impl UnwindSafe for CustomEntityType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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