[−][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.
lower_bound_days: Option<i32>
For example, -5 means shift date to at most 5 days back in the past. [Required]
upper_bound_days: Option<i32>
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. [Required]
context: Option<GooglePrivacyDlpV2FieldId>
Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context.
Trait Implementations
impl Part for GooglePrivacyDlpV2DateShiftConfig
[src]
impl Default for GooglePrivacyDlpV2DateShiftConfig
[src]
impl Clone for GooglePrivacyDlpV2DateShiftConfig
[src]
fn clone(&self) -> GooglePrivacyDlpV2DateShiftConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for GooglePrivacyDlpV2DateShiftConfig
[src]
impl Serialize for GooglePrivacyDlpV2DateShiftConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for GooglePrivacyDlpV2DateShiftConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for GooglePrivacyDlpV2DateShiftConfig
impl Unpin for GooglePrivacyDlpV2DateShiftConfig
impl Sync for GooglePrivacyDlpV2DateShiftConfig
impl UnwindSafe for GooglePrivacyDlpV2DateShiftConfig
impl RefUnwindSafe for GooglePrivacyDlpV2DateShiftConfig
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,