Struct google_dlp2_beta1::GooglePrivacyDlpV2beta1Condition[][src]

pub struct GooglePrivacyDlpV2beta1Condition {
    pub operator: Option<String>,
    pub field: Option<GooglePrivacyDlpV2beta1FieldId>,
    pub value: Option<GooglePrivacyDlpV2beta1Value>,
}

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 info type 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 GooglePrivacyDlpV2beta1Condition
[src]

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

impl Clone for GooglePrivacyDlpV2beta1Condition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GooglePrivacyDlpV2beta1Condition
[src]

Formats the value using the given formatter. Read more

impl Part for GooglePrivacyDlpV2beta1Condition
[src]

Auto Trait Implementations