pub struct GooglePrivacyDlpV2beta1FieldTransformation {
pub condition: Option<GooglePrivacyDlpV2beta1RecordCondition>,
pub info_type_transformations: Option<GooglePrivacyDlpV2beta1InfoTypeTransformations>,
pub fields: Option<Vec<GooglePrivacyDlpV2beta1FieldId>>,
pub primitive_transformation: Option<GooglePrivacyDlpV2beta1PrimitiveTransformation>,
}
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<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.
info_type_transformations: Option<GooglePrivacyDlpV2beta1InfoTypeTransformations>
Treat the contents of the field as free text, and selectively
transform content that matches an InfoType
.
fields: Option<Vec<GooglePrivacyDlpV2beta1FieldId>>
Input field(s) to apply the transformation to. [required]
primitive_transformation: Option<GooglePrivacyDlpV2beta1PrimitiveTransformation>
Apply the transformation to the entire field.
Trait Implementations§
source§impl Clone for GooglePrivacyDlpV2beta1FieldTransformation
impl Clone for GooglePrivacyDlpV2beta1FieldTransformation
source§fn clone(&self) -> GooglePrivacyDlpV2beta1FieldTransformation
fn clone(&self) -> GooglePrivacyDlpV2beta1FieldTransformation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GooglePrivacyDlpV2beta1FieldTransformation
impl Default for GooglePrivacyDlpV2beta1FieldTransformation
source§fn default() -> GooglePrivacyDlpV2beta1FieldTransformation
fn default() -> GooglePrivacyDlpV2beta1FieldTransformation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GooglePrivacyDlpV2beta1FieldTransformation
impl<'de> Deserialize<'de> for GooglePrivacyDlpV2beta1FieldTransformation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GooglePrivacyDlpV2beta1FieldTransformation
Auto Trait Implementations§
impl RefUnwindSafe for GooglePrivacyDlpV2beta1FieldTransformation
impl Send for GooglePrivacyDlpV2beta1FieldTransformation
impl Sync for GooglePrivacyDlpV2beta1FieldTransformation
impl Unpin for GooglePrivacyDlpV2beta1FieldTransformation
impl UnwindSafe for GooglePrivacyDlpV2beta1FieldTransformation
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
Mutably borrows from an owned value. Read more