[][src]Struct google_dlp2::GooglePrivacyDlpV2DateShiftConfig

pub struct GooglePrivacyDlpV2DateShiftConfig {
    pub crypto_key: Option<GooglePrivacyDlpV2CryptoKey>,
    pub lower_bound_days: Option<i32>,
    pub upper_bound_days: Option<i32>,
    pub context: Option<GooglePrivacyDlpV2FieldId>,
}

Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting to learn more.

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

Fields

crypto_key: Option<GooglePrivacyDlpV2CryptoKey>

Causes the shift to be computed based on this key and the context. This results in the same shift for the same context and crypto_key. If set, must also set context. Can only be applied to table items.

lower_bound_days: Option<i32>

Required. For example, -5 means shift date to at most 5 days back in the past.

upper_bound_days: Option<i32>

Required. Range of shift in days. Actual shift will be selected at random within this range (inclusive ends). Negative means shift to earlier in time. Must not be more than 365250 days (1000 years) each direction.

For example, 3 means shift date to at most 3 days into the future.

context: Option<GooglePrivacyDlpV2FieldId>

Points to the field that contains the context, for example, an entity id. If set, must also set cryptoKey. If set, shift will be consistent for the given context.

Trait Implementations

impl Clone for GooglePrivacyDlpV2DateShiftConfig[src]

impl Debug for GooglePrivacyDlpV2DateShiftConfig[src]

impl Default for GooglePrivacyDlpV2DateShiftConfig[src]

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

impl Part for GooglePrivacyDlpV2DateShiftConfig[src]

impl Serialize for GooglePrivacyDlpV2DateShiftConfig[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