pub struct GooglePrivacyDlpV2FieldTransformation {
pub condition: Option<GooglePrivacyDlpV2RecordCondition>,
pub fields: Option<Vec<GooglePrivacyDlpV2FieldId>>,
pub info_type_transformations: Option<GooglePrivacyDlpV2InfoTypeTransformations>,
pub primitive_transformation: Option<GooglePrivacyDlpV2PrimitiveTransformation>,
}Expand description
The transformation to apply to the field.
This type is not used in any activity, and only used as part of another schema.
Fields§
§condition: Option<GooglePrivacyDlpV2RecordCondition>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. 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<GooglePrivacyDlpV2FieldId>>Required. Input field(s) to apply the transformation to. When you have columns that reference their position within a list, omit the index from the FieldId. FieldId name matching ignores the index. For example, instead of “contact.nums[0].type”, use “contact.nums.type”.
info_type_transformations: Option<GooglePrivacyDlpV2InfoTypeTransformations>Treat the contents of the field as free text, and selectively transform content that matches an InfoType.
primitive_transformation: Option<GooglePrivacyDlpV2PrimitiveTransformation>Apply the transformation to the entire field.
Trait Implementations§
Source§impl Clone for GooglePrivacyDlpV2FieldTransformation
impl Clone for GooglePrivacyDlpV2FieldTransformation
Source§fn clone(&self) -> GooglePrivacyDlpV2FieldTransformation
fn clone(&self) -> GooglePrivacyDlpV2FieldTransformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more