Struct google_api_proto::google::privacy::dlp::v2::CustomInfoType
source · pub struct CustomInfoType {
pub info_type: Option<InfoType>,
pub likelihood: i32,
pub detection_rules: Vec<DetectionRule>,
pub exclusion_type: i32,
pub sensitivity_score: Option<SensitivityScore>,
pub type: Option<Type>,
}
Expand description
Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.
Fields§
§info_type: Option<InfoType>
CustomInfoType can either be a new infoType, or an extension of built-in
infoType, when the name matches one of existing infoTypes and that infoType
is specified in InspectContent.info_types
field. Specifying the latter
adds findings to the one detected by the system. If built-in info type is
not specified in InspectContent.info_types
list then the name is treated
as a custom info type.
likelihood: i32
Likelihood to return for this CustomInfoType. This base value can be
altered by a detection rule if the finding meets the criteria specified by
the rule. Defaults to VERY_LIKELY
if not specified.
detection_rules: Vec<DetectionRule>
Set of detection rules to apply to all findings of this CustomInfoType.
Rules are applied in order that they are specified. Not supported for the
surrogate_type
CustomInfoType.
exclusion_type: i32
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.
sensitivity_score: Option<SensitivityScore>
Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.
type: Option<Type>
Type of custom detector.
Implementations§
source§impl CustomInfoType
impl CustomInfoType
sourcepub fn likelihood(&self) -> Likelihood
pub fn likelihood(&self) -> Likelihood
Returns the enum value of likelihood
, or the default if the field is set to an invalid enum value.
sourcepub fn set_likelihood(&mut self, value: Likelihood)
pub fn set_likelihood(&mut self, value: Likelihood)
Sets likelihood
to the provided enum value.
sourcepub fn exclusion_type(&self) -> ExclusionType
pub fn exclusion_type(&self) -> ExclusionType
Returns the enum value of exclusion_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_exclusion_type(&mut self, value: ExclusionType)
pub fn set_exclusion_type(&mut self, value: ExclusionType)
Sets exclusion_type
to the provided enum value.
Trait Implementations§
source§impl Clone for CustomInfoType
impl Clone for CustomInfoType
source§fn clone(&self) -> CustomInfoType
fn clone(&self) -> CustomInfoType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomInfoType
impl Debug for CustomInfoType
source§impl Default for CustomInfoType
impl Default for CustomInfoType
source§impl Message for CustomInfoType
impl Message for CustomInfoType
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for CustomInfoType
impl PartialEq for CustomInfoType
source§fn eq(&self, other: &CustomInfoType) -> bool
fn eq(&self, other: &CustomInfoType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomInfoType
Auto Trait Implementations§
impl Freeze for CustomInfoType
impl RefUnwindSafe for CustomInfoType
impl Send for CustomInfoType
impl Sync for CustomInfoType
impl Unpin for CustomInfoType
impl UnwindSafe for CustomInfoType
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