[][src]Struct google_dlp2::GooglePrivacyDlpV2CustomInfoType

pub struct GooglePrivacyDlpV2CustomInfoType {
    pub regex: Option<GooglePrivacyDlpV2Regex>,
    pub surrogate_type: Option<GooglePrivacyDlpV2SurrogateType>,
    pub info_type: Option<GooglePrivacyDlpV2InfoType>,
    pub dictionary: Option<GooglePrivacyDlpV2Dictionary>,
    pub stored_type: Option<GooglePrivacyDlpV2StoredType>,
    pub detection_rules: Option<Vec<GooglePrivacyDlpV2DetectionRule>>,
    pub exclusion_type: Option<String>,
    pub likelihood: Option<String>,
}

Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.

This type is not used in any activity, and only used as part of another schema.

Fields

regex: Option<GooglePrivacyDlpV2Regex>

Regular expression based CustomInfoType.

surrogate_type: Option<GooglePrivacyDlpV2SurrogateType>

Message for detecting output from deidentification transformations that support reversing.

info_type: Option<GooglePrivacyDlpV2InfoType>

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.

dictionary: Option<GooglePrivacyDlpV2Dictionary>

A list of phrases to detect as a CustomInfoType.

stored_type: Option<GooglePrivacyDlpV2StoredType>

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

detection_rules: Option<Vec<GooglePrivacyDlpV2DetectionRule>>

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: Option<String>

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

likelihood: Option<String>

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.

Trait Implementations

impl Part for GooglePrivacyDlpV2CustomInfoType[src]

impl Default for GooglePrivacyDlpV2CustomInfoType[src]

impl Clone for GooglePrivacyDlpV2CustomInfoType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GooglePrivacyDlpV2CustomInfoType[src]

impl Serialize for GooglePrivacyDlpV2CustomInfoType[src]

impl<'de> Deserialize<'de> for GooglePrivacyDlpV2CustomInfoType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]