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

pub struct InspectConfig {
    pub info_types: Vec<InfoType>,
    pub min_likelihood: i32,
    pub limits: Option<FindingLimits>,
    pub include_quote: bool,
    pub exclude_info_types: bool,
    pub custom_info_types: Vec<CustomInfoType>,
    pub content_options: Vec<i32>,
    pub rule_set: Vec<InspectionRuleSet>,
}

Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.

Fields

info_types: Vec<InfoType>

Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/dlp/docs/infotypes-reference.

When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.

min_likelihood: i32

Only returns findings equal or above this threshold. The default is POSSIBLE. See https://cloud.google.com/dlp/docs/likelihood to learn more.

limits: Option<FindingLimits>

Configuration to control the number of findings returned.

include_quote: bool

When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote.

exclude_info_types: bool

When true, excludes type information of the findings.

custom_info_types: Vec<CustomInfoType>

CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.

content_options: Vec<i32>

List of options defining data content to scan. If empty, text, images, and other content will be included.

rule_set: Vec<InspectionRuleSet>

Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type.

Implementations

impl InspectConfig[src]

pub fn min_likelihood(&self) -> Likelihood[src]

Returns the enum value of min_likelihood, or the default if the field is set to an invalid enum value.

pub fn set_min_likelihood(&mut self, value: Likelihood)[src]

Sets min_likelihood to the provided enum value.

pub fn content_options(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ContentOption>>
[src]

Returns an iterator which yields the valid enum values contained in content_options.

pub fn push_content_options(&mut self, value: ContentOption)[src]

Appends the provided enum value to content_options.

Trait Implementations

impl Clone for InspectConfig[src]

impl Debug for InspectConfig[src]

impl Default for InspectConfig[src]

impl Message for InspectConfig[src]

impl PartialEq<InspectConfig> for InspectConfig[src]

impl StructuralPartialEq for InspectConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for InspectConfig

impl Send for InspectConfig

impl Sync for InspectConfig

impl Unpin for InspectConfig

impl UnwindSafe for InspectConfig

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]