Struct google_dlp2_beta1::GooglePrivacyDlpV2beta1FieldTransformation [−][src]
pub struct GooglePrivacyDlpV2beta1FieldTransformation { pub info_type_transformations: Option<GooglePrivacyDlpV2beta1InfoTypeTransformations>, pub primitive_transformation: Option<GooglePrivacyDlpV2beta1PrimitiveTransformation>, pub condition: Option<GooglePrivacyDlpV2beta1RecordCondition>, pub fields: Option<Vec<GooglePrivacyDlpV2beta1FieldId>>, }
The transformation to apply to the field.
This type is not used in any activity, and only used as part of another schema.
Fields
info_type_transformations: Option<GooglePrivacyDlpV2beta1InfoTypeTransformations>
Treat the contents of the field as free text, and selectively
transform content that matches an InfoType
.
primitive_transformation: Option<GooglePrivacyDlpV2beta1PrimitiveTransformation>
Apply the transformation to the entire field.
condition: Option<GooglePrivacyDlpV2beta1RecordCondition>
Only apply the transformation if the condition evaluates to true for the
given RecordCondition
. The conditions are allowed to reference fields
that are not used in the actual transformation. [optional]
Example Use Cases:
- Apply a different bucket transformation to an age column if the zip code column for the same record is within a specific range.
- Redact a field if the date of birth field is greater than 85.
fields: Option<Vec<GooglePrivacyDlpV2beta1FieldId>>
Input field(s) to apply the transformation to. [required]
Trait Implementations
impl Default for GooglePrivacyDlpV2beta1FieldTransformation
[src]
impl Default for GooglePrivacyDlpV2beta1FieldTransformation
fn default() -> GooglePrivacyDlpV2beta1FieldTransformation
[src]
fn default() -> GooglePrivacyDlpV2beta1FieldTransformation
Returns the "default value" for a type. Read more
impl Clone for GooglePrivacyDlpV2beta1FieldTransformation
[src]
impl Clone for GooglePrivacyDlpV2beta1FieldTransformation
fn clone(&self) -> GooglePrivacyDlpV2beta1FieldTransformation
[src]
fn clone(&self) -> GooglePrivacyDlpV2beta1FieldTransformation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GooglePrivacyDlpV2beta1FieldTransformation
[src]
impl Debug for GooglePrivacyDlpV2beta1FieldTransformation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for GooglePrivacyDlpV2beta1FieldTransformation
[src]
impl Part for GooglePrivacyDlpV2beta1FieldTransformation