pub struct GooglePrivacyDlpV2ImageRedactionConfig {
pub info_type: Option<GooglePrivacyDlpV2InfoType>,
pub redact_all_text: Option<bool>,
pub redaction_color: Option<GooglePrivacyDlpV2Color>,
}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§
§info_type: Option<GooglePrivacyDlpV2InfoType>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.
redact_all_text: Option<bool>If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.
redaction_color: Option<GooglePrivacyDlpV2Color>The color to use when redacting content from an image. If not specified, the default is black.
Trait Implementations§
Source§impl Clone for GooglePrivacyDlpV2ImageRedactionConfig
impl Clone for GooglePrivacyDlpV2ImageRedactionConfig
Source§fn clone(&self) -> GooglePrivacyDlpV2ImageRedactionConfig
fn clone(&self) -> GooglePrivacyDlpV2ImageRedactionConfig
Returns a duplicate 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 GooglePrivacyDlpV2ImageRedactionConfig
impl Default for GooglePrivacyDlpV2ImageRedactionConfig
Source§fn default() -> GooglePrivacyDlpV2ImageRedactionConfig
fn default() -> GooglePrivacyDlpV2ImageRedactionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GooglePrivacyDlpV2ImageRedactionConfig
impl<'de> Deserialize<'de> for GooglePrivacyDlpV2ImageRedactionConfig
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 GooglePrivacyDlpV2ImageRedactionConfig
Auto Trait Implementations§
impl Freeze for GooglePrivacyDlpV2ImageRedactionConfig
impl RefUnwindSafe for GooglePrivacyDlpV2ImageRedactionConfig
impl Send for GooglePrivacyDlpV2ImageRedactionConfig
impl Sync for GooglePrivacyDlpV2ImageRedactionConfig
impl Unpin for GooglePrivacyDlpV2ImageRedactionConfig
impl UnwindSafe for GooglePrivacyDlpV2ImageRedactionConfig
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