pub struct GooglePrivacyDlpV2beta1ImageRedactionConfig {
pub redaction_color: Option<GooglePrivacyDlpV2beta1Color>,
pub redact_all_text: Option<bool>,
pub info_type: Option<GooglePrivacyDlpV2beta1InfoType>,
}
Expand description
Configuration for determining how redaction of images should occur.
This type is not used in any activity, and only used as part of another schema.
Fields§
§redaction_color: Option<GooglePrivacyDlpV2beta1Color>
The color to use when redacting content from an image. If not specified, the default is black.
redact_all_text: Option<bool>
If true, all text found in the image, regardless whether it matches an info_type, is redacted.
info_type: Option<GooglePrivacyDlpV2beta1InfoType>
Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.
Trait Implementations§
source§impl Clone for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl Clone for GooglePrivacyDlpV2beta1ImageRedactionConfig
source§fn clone(&self) -> GooglePrivacyDlpV2beta1ImageRedactionConfig
fn clone(&self) -> GooglePrivacyDlpV2beta1ImageRedactionConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl Default for GooglePrivacyDlpV2beta1ImageRedactionConfig
source§fn default() -> GooglePrivacyDlpV2beta1ImageRedactionConfig
fn default() -> GooglePrivacyDlpV2beta1ImageRedactionConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl<'de> Deserialize<'de> for GooglePrivacyDlpV2beta1ImageRedactionConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GooglePrivacyDlpV2beta1ImageRedactionConfig
Auto Trait Implementations§
impl RefUnwindSafe for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl Send for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl Sync for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl Unpin for GooglePrivacyDlpV2beta1ImageRedactionConfig
impl UnwindSafe for GooglePrivacyDlpV2beta1ImageRedactionConfig
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
Mutably borrows from an owned value. Read more