#[non_exhaustive]pub struct CloudDlpDataProfile {
pub data_profile: String,
pub parent_type: ParentType,
/* private fields */
}Expand description
The data profile associated with the finding.
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.data_profile: StringName of the data profile, for example,
projects/123/locations/europe/tableProfiles/8383929.
parent_type: ParentTypeThe resource hierarchy level at which the data profile was generated.
Implementations§
Source§impl CloudDlpDataProfile
impl CloudDlpDataProfile
pub fn new() -> Self
Sourcepub fn set_data_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_data_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of data_profile.
§Example
ⓘ
let x = CloudDlpDataProfile::new().set_data_profile("example");Sourcepub fn set_parent_type<T: Into<ParentType>>(self, v: T) -> Self
pub fn set_parent_type<T: Into<ParentType>>(self, v: T) -> Self
Sets the value of parent_type.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::cloud_dlp_data_profile::ParentType;
let x0 = CloudDlpDataProfile::new().set_parent_type(ParentType::Organization);
let x1 = CloudDlpDataProfile::new().set_parent_type(ParentType::Project);Trait Implementations§
Source§impl Clone for CloudDlpDataProfile
impl Clone for CloudDlpDataProfile
Source§fn clone(&self) -> CloudDlpDataProfile
fn clone(&self) -> CloudDlpDataProfile
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 Debug for CloudDlpDataProfile
impl Debug for CloudDlpDataProfile
Source§impl Default for CloudDlpDataProfile
impl Default for CloudDlpDataProfile
Source§fn default() -> CloudDlpDataProfile
fn default() -> CloudDlpDataProfile
Returns the “default value” for a type. Read more
Source§impl Message for CloudDlpDataProfile
impl Message for CloudDlpDataProfile
Source§impl PartialEq for CloudDlpDataProfile
impl PartialEq for CloudDlpDataProfile
impl StructuralPartialEq for CloudDlpDataProfile
Auto Trait Implementations§
impl Freeze for CloudDlpDataProfile
impl RefUnwindSafe for CloudDlpDataProfile
impl Send for CloudDlpDataProfile
impl Sync for CloudDlpDataProfile
impl Unpin for CloudDlpDataProfile
impl UnsafeUnpin for CloudDlpDataProfile
impl UnwindSafe for CloudDlpDataProfile
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