Struct google_api_proto::google::privacy::dlp::v2::DateShiftConfig
source · pub struct DateShiftConfig {
pub upper_bound_days: i32,
pub lower_bound_days: i32,
pub context: Option<FieldId>,
pub method: Option<Method>,
}
Expand description
Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/sensitive-data-protection/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§
source§impl Clone for DateShiftConfig
impl Clone for DateShiftConfig
source§fn clone(&self) -> DateShiftConfig
fn clone(&self) -> DateShiftConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DateShiftConfig
impl Debug for DateShiftConfig
source§impl Default for DateShiftConfig
impl Default for DateShiftConfig
source§impl Message for DateShiftConfig
impl Message for DateShiftConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DateShiftConfig
impl PartialEq for DateShiftConfig
source§fn eq(&self, other: &DateShiftConfig) -> bool
fn eq(&self, other: &DateShiftConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DateShiftConfig
Auto Trait Implementations§
impl !Freeze for DateShiftConfig
impl RefUnwindSafe for DateShiftConfig
impl Send for DateShiftConfig
impl Sync for DateShiftConfig
impl Unpin for DateShiftConfig
impl UnwindSafe for DateShiftConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request