Struct gapi_grpc::google::privacy::dlp::v2::DateShiftConfig[][src]

pub struct DateShiftConfig {
    pub upper_bound_days: i32,
    pub lower_bound_days: i32,
    pub context: Option<FieldId>,
    pub method: Option<Method>,
}

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.

Fields

upper_bound_days: 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.

lower_bound_days: i32

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

context: Option<FieldId>

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.

method: Option<Method>

Method for calculating shift that takes context into consideration. If set, must also set context. Can only be applied to table items.

Trait Implementations

impl Clone for DateShiftConfig[src]

impl Debug for DateShiftConfig[src]

impl Default for DateShiftConfig[src]

impl Message for DateShiftConfig[src]

impl PartialEq<DateShiftConfig> for DateShiftConfig[src]

impl StructuralPartialEq for DateShiftConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for DateShiftConfig

impl Send for DateShiftConfig

impl Sync for DateShiftConfig

impl Unpin for DateShiftConfig

impl UnwindSafe for DateShiftConfig

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]