[][src]Struct google_dlp2::GooglePrivacyDlpV2Condition

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. EQUAL_TO and NOT_EQUAL_TO attempt to compare even with incompatible types, but all other comparisons are invalid with incompatible types. 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: Option<String>

Required. Operator used to compare the field or infoType to the value.

field: Option<GooglePrivacyDlpV2FieldId>

Required. Field within the record this condition is evaluated against.

value: Option<GooglePrivacyDlpV2Value>

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

Trait Implementations

impl Clone for GooglePrivacyDlpV2Condition[src]

impl Debug for GooglePrivacyDlpV2Condition[src]

impl Default for GooglePrivacyDlpV2Condition[src]

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

impl Part for GooglePrivacyDlpV2Condition[src]

impl Serialize for GooglePrivacyDlpV2Condition[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Typeable for T where
    T: Any