pub struct GooglePrivacyDlpV2RedactImageRequest {
pub byte_item: Option<GooglePrivacyDlpV2ByteContentItem>,
pub deidentify_template: Option<String>,
pub image_redaction_configs: Option<Vec<GooglePrivacyDlpV2ImageRedactionConfig>>,
pub include_findings: Option<bool>,
pub inspect_config: Option<GooglePrivacyDlpV2InspectConfig>,
pub inspect_template: Option<String>,
pub location_id: Option<String>,
}Expand description
Request to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- image redact projects (request)
- locations image redact projects (request)
Fields§
§byte_item: Option<GooglePrivacyDlpV2ByteContentItem>The content must be PNG, JPEG, SVG or BMP.
deidentify_template: Option<String>The full resource name of the de-identification template to use. Settings in the main image_redaction_configs field override the corresponding settings in this de-identification template. The request fails if the type of the template’s deidentify_config is not image_transformations.
image_redaction_configs: Option<Vec<GooglePrivacyDlpV2ImageRedactionConfig>>The configuration for specifying what content to redact from images.
include_findings: Option<bool>Whether the response should include findings along with the redacted image.
inspect_config: Option<GooglePrivacyDlpV2InspectConfig>Configuration for the inspector.
inspect_template: Option<String>The full resource name of the inspection template to use. Settings in the main inspect_config field override the corresponding settings in this inspection template. The merge behavior is as follows: - Singular field: The main field’s value replaces the value of the corresponding field in the template. - Repeated fields: The field values are appended to the list defined in the template. - Sub-messages and groups: The fields are recursively merged.
location_id: Option<String>Deprecated. This field has no effect.
Trait Implementations§
Source§impl Clone for GooglePrivacyDlpV2RedactImageRequest
impl Clone for GooglePrivacyDlpV2RedactImageRequest
Source§fn clone(&self) -> GooglePrivacyDlpV2RedactImageRequest
fn clone(&self) -> GooglePrivacyDlpV2RedactImageRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more