Struct google_dlp2::GooglePrivacyDlpV2Condition[][src]

pub struct GooglePrivacyDlpV2Condition {
    pub operator: Option<String>,
    pub field: Option<GooglePrivacyDlpV2FieldId>,
    pub value: Option<GooglePrivacyDlpV2Value>,
}

The field type of value and field do not need to match to be considered equal, but not all comparisons are possible.

A value of type:

  • string can be compared against all other types
  • boolean can only be compared against other booleans
  • integer can be compared against doubles or a string if the string value can be parsed as an integer.
  • double can be compared against integers or a string if the string can be parsed as a double.
  • Timestamp can be compared against strings in RFC 3339 date string format.
  • TimeOfDay can be compared against timestamps and strings in the format of 'HH:mm:ss'.

If we fail to compare do to type mismatch, a warning will be given and the condition will evaluate to false.

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

Fields

Operator used to compare the field or infoType to the value. [required]

Field within the record this condition is evaluated against. [required]

Value to compare against. [Required, except for EXISTS tests.]

Trait Implementations

impl Default for GooglePrivacyDlpV2Condition
[src]

Returns the "default value" for a type. Read more

impl Clone for GooglePrivacyDlpV2Condition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GooglePrivacyDlpV2Condition
[src]

Formats the value using the given formatter. Read more

impl Part for GooglePrivacyDlpV2Condition
[src]

Auto Trait Implementations