[][src]Struct google_dlp2::GooglePrivacyDlpV2FieldTransformation

pub struct GooglePrivacyDlpV2FieldTransformation {
    pub fields: Option<Vec<GooglePrivacyDlpV2FieldId>>,
    pub primitive_transformation: Option<GooglePrivacyDlpV2PrimitiveTransformation>,
    pub condition: Option<GooglePrivacyDlpV2RecordCondition>,
    pub info_type_transformations: Option<GooglePrivacyDlpV2InfoTypeTransformations>,
}

The transformation to apply to the field.

This type is not used in any activity, and only used as part of another schema.

Fields

fields: Option<Vec<GooglePrivacyDlpV2FieldId>>

Input field(s) to apply the transformation to. [required]

primitive_transformation: Option<GooglePrivacyDlpV2PrimitiveTransformation>

Apply the transformation to the entire field.

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. [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<GooglePrivacyDlpV2InfoTypeTransformations>

Treat the contents of the field as free text, and selectively transform content that matches an InfoType.

Trait Implementations

impl Part for GooglePrivacyDlpV2FieldTransformation[src]

impl Default for GooglePrivacyDlpV2FieldTransformation[src]

impl Clone for GooglePrivacyDlpV2FieldTransformation[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GooglePrivacyDlpV2FieldTransformation[src]

impl Serialize for GooglePrivacyDlpV2FieldTransformation[src]

impl<'de> Deserialize<'de> for GooglePrivacyDlpV2FieldTransformation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]