#[non_exhaustive]pub struct CloudControlMetadata {
pub cloud_control_details: Option<CloudControlDetails>,
pub enforcement_mode: EnforcementMode,
/* private fields */
}Expand description
The enforcement mode and parameters of a cloud control deployment.
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.cloud_control_details: Option<CloudControlDetails>Required. The cloud control name and parameters.
enforcement_mode: EnforcementModeRequired. The enforcement mode of the cloud control.
Implementations§
Source§impl CloudControlMetadata
impl CloudControlMetadata
pub fn new() -> Self
Sourcepub fn set_cloud_control_details<T>(self, v: T) -> Selfwhere
T: Into<CloudControlDetails>,
pub fn set_cloud_control_details<T>(self, v: T) -> Selfwhere
T: Into<CloudControlDetails>,
Sets the value of cloud_control_details.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::CloudControlDetails;
let x = CloudControlMetadata::new().set_cloud_control_details(CloudControlDetails::default()/* use setters */);Sourcepub fn set_or_clear_cloud_control_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudControlDetails>,
pub fn set_or_clear_cloud_control_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudControlDetails>,
Sets or clears the value of cloud_control_details.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::CloudControlDetails;
let x = CloudControlMetadata::new().set_or_clear_cloud_control_details(Some(CloudControlDetails::default()/* use setters */));
let x = CloudControlMetadata::new().set_or_clear_cloud_control_details(None::<CloudControlDetails>);Sourcepub fn set_enforcement_mode<T: Into<EnforcementMode>>(self, v: T) -> Self
pub fn set_enforcement_mode<T: Into<EnforcementMode>>(self, v: T) -> Self
Sets the value of enforcement_mode.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::EnforcementMode;
let x0 = CloudControlMetadata::new().set_enforcement_mode(EnforcementMode::Preventive);
let x1 = CloudControlMetadata::new().set_enforcement_mode(EnforcementMode::Detective);
let x2 = CloudControlMetadata::new().set_enforcement_mode(EnforcementMode::Audit);Trait Implementations§
Source§impl Clone for CloudControlMetadata
impl Clone for CloudControlMetadata
Source§fn clone(&self) -> CloudControlMetadata
fn clone(&self) -> CloudControlMetadata
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 CloudControlMetadata
impl Debug for CloudControlMetadata
Source§impl Default for CloudControlMetadata
impl Default for CloudControlMetadata
Source§fn default() -> CloudControlMetadata
fn default() -> CloudControlMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CloudControlMetadata
impl Message for CloudControlMetadata
Source§impl PartialEq for CloudControlMetadata
impl PartialEq for CloudControlMetadata
impl StructuralPartialEq for CloudControlMetadata
Auto Trait Implementations§
impl Freeze for CloudControlMetadata
impl RefUnwindSafe for CloudControlMetadata
impl Send for CloudControlMetadata
impl Sync for CloudControlMetadata
impl Unpin for CloudControlMetadata
impl UnwindSafe for CloudControlMetadata
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