#[non_exhaustive]pub struct CompliancePostureConfig {
pub mode: Option<Mode>,
pub compliance_standards: Vec<ComplianceStandard>,
/* private fields */
}๐Deprecated
Expand description
Deprecated: Compliance Posture is no longer supported. For more details, see https://cloud.google.com/kubernetes-engine/docs/deprecations/posture-management-deprecation.
CompliancePostureConfig defines the settings needed to enable/disable features for the Compliance Posture.
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.mode: Option<Mode>๐Deprecated
Defines the enablement mode for Compliance Posture.
compliance_standards: Vec<ComplianceStandard>๐Deprecated
List of enabled compliance standards.
Implementationsยง
Sourceยงimpl CompliancePostureConfig
impl CompliancePostureConfig
Sourcepub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mode<T>(self, v: Option<T>) -> Self
Sets or clears the value of mode.
ยงExample
โ
use google_cloud_container_v1::model::compliance_posture_config::Mode;
let x0 = CompliancePostureConfig::new().set_or_clear_mode(Some(Mode::Disabled));
let x1 = CompliancePostureConfig::new().set_or_clear_mode(Some(Mode::Enabled));
let x_none = CompliancePostureConfig::new().set_or_clear_mode(None::<Mode>);Sourcepub fn set_compliance_standards<T, V>(self, v: T) -> Self
pub fn set_compliance_standards<T, V>(self, v: T) -> Self
Sets the value of compliance_standards.
ยงExample
โ
use google_cloud_container_v1::model::compliance_posture_config::ComplianceStandard;
let x = CompliancePostureConfig::new()
.set_compliance_standards([
ComplianceStandard::default()/* use setters */,
ComplianceStandard::default()/* use (different) setters */,
]);Trait Implementationsยง
Sourceยงimpl Clone for CompliancePostureConfig
impl Clone for CompliancePostureConfig
Sourceยงfn clone(&self) -> CompliancePostureConfig
fn clone(&self) -> CompliancePostureConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท 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 CompliancePostureConfig
impl Debug for CompliancePostureConfig
Sourceยงimpl Default for CompliancePostureConfig
impl Default for CompliancePostureConfig
Sourceยงfn default() -> CompliancePostureConfig
fn default() -> CompliancePostureConfig
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl Message for CompliancePostureConfig
impl Message for CompliancePostureConfig
Sourceยงimpl PartialEq for CompliancePostureConfig
impl PartialEq for CompliancePostureConfig
Sourceยงfn eq(&self, other: &CompliancePostureConfig) -> bool
fn eq(&self, other: &CompliancePostureConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompliancePostureConfig
Auto Trait Implementationsยง
impl Freeze for CompliancePostureConfig
impl RefUnwindSafe for CompliancePostureConfig
impl Send for CompliancePostureConfig
impl Sync for CompliancePostureConfig
impl Unpin for CompliancePostureConfig
impl UnsafeUnpin for CompliancePostureConfig
impl UnwindSafe for CompliancePostureConfig
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