[−][src]Struct google_dlp2::GooglePrivacyDlpV2DateShiftConfig
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]
fn clone(&self) -> GooglePrivacyDlpV2DateShiftConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GooglePrivacyDlpV2DateShiftConfig
[src]
impl Default for GooglePrivacyDlpV2DateShiftConfig
[src]
impl<'de> Deserialize<'de> for GooglePrivacyDlpV2DateShiftConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for GooglePrivacyDlpV2DateShiftConfig
[src]
impl Serialize for GooglePrivacyDlpV2DateShiftConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for GooglePrivacyDlpV2DateShiftConfig
impl Send for GooglePrivacyDlpV2DateShiftConfig
impl Sync for GooglePrivacyDlpV2DateShiftConfig
impl Unpin for GooglePrivacyDlpV2DateShiftConfig
impl UnwindSafe for GooglePrivacyDlpV2DateShiftConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,