#[non_exhaustive]pub struct SensitiveDataProtectionMapping {
pub high_sensitivity_mapping: ResourceValue,
pub medium_sensitivity_mapping: ResourceValue,
/* private fields */
}Expand description
Resource value mapping for Sensitive Data Protection findings If any of these mappings have a resource value that is not unspecified, the resource_value field will be ignored when reading this configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.high_sensitivity_mapping: ResourceValueResource value mapping for high-sensitivity Sensitive Data Protection findings
medium_sensitivity_mapping: ResourceValueResource value mapping for medium-sensitivity Sensitive Data Protection findings
Implementations§
Source§impl SensitiveDataProtectionMapping
impl SensitiveDataProtectionMapping
pub fn new() -> Self
Sourcepub fn set_high_sensitivity_mapping<T: Into<ResourceValue>>(self, v: T) -> Self
pub fn set_high_sensitivity_mapping<T: Into<ResourceValue>>(self, v: T) -> Self
Sets the value of high_sensitivity_mapping.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::ResourceValue;
let x0 = SensitiveDataProtectionMapping::new().set_high_sensitivity_mapping(ResourceValue::High);
let x1 = SensitiveDataProtectionMapping::new().set_high_sensitivity_mapping(ResourceValue::Medium);
let x2 = SensitiveDataProtectionMapping::new().set_high_sensitivity_mapping(ResourceValue::Low);Sourcepub fn set_medium_sensitivity_mapping<T: Into<ResourceValue>>(
self,
v: T,
) -> Self
pub fn set_medium_sensitivity_mapping<T: Into<ResourceValue>>( self, v: T, ) -> Self
Sets the value of medium_sensitivity_mapping.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::ResourceValue;
let x0 = SensitiveDataProtectionMapping::new().set_medium_sensitivity_mapping(ResourceValue::High);
let x1 = SensitiveDataProtectionMapping::new().set_medium_sensitivity_mapping(ResourceValue::Medium);
let x2 = SensitiveDataProtectionMapping::new().set_medium_sensitivity_mapping(ResourceValue::Low);Trait Implementations§
Source§impl Clone for SensitiveDataProtectionMapping
impl Clone for SensitiveDataProtectionMapping
Source§fn clone(&self) -> SensitiveDataProtectionMapping
fn clone(&self) -> SensitiveDataProtectionMapping
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 SensitiveDataProtectionMapping
impl Default for SensitiveDataProtectionMapping
Source§fn default() -> SensitiveDataProtectionMapping
fn default() -> SensitiveDataProtectionMapping
Returns the “default value” for a type. Read more
Source§impl PartialEq for SensitiveDataProtectionMapping
impl PartialEq for SensitiveDataProtectionMapping
Source§fn eq(&self, other: &SensitiveDataProtectionMapping) -> bool
fn eq(&self, other: &SensitiveDataProtectionMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SensitiveDataProtectionMapping
Auto Trait Implementations§
impl Freeze for SensitiveDataProtectionMapping
impl RefUnwindSafe for SensitiveDataProtectionMapping
impl Send for SensitiveDataProtectionMapping
impl Sync for SensitiveDataProtectionMapping
impl Unpin for SensitiveDataProtectionMapping
impl UnwindSafe for SensitiveDataProtectionMapping
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