#[non_exhaustive]pub struct WorkloadPolicyConfig {
pub allow_net_admin: Option<bool>,
pub autopilot_compatibility_auditing_enabled: Option<bool>,
/* private fields */
}Expand description
WorkloadPolicyConfig is the configuration related to GCW workload policy
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.allow_net_admin: Option<bool>If true, workloads can use NET_ADMIN capability.
autopilot_compatibility_auditing_enabled: Option<bool>If true, enables the GCW Auditor that audits workloads on standard clusters.
Implementations§
Source§impl WorkloadPolicyConfig
impl WorkloadPolicyConfig
pub fn new() -> Self
Sourcepub fn set_allow_net_admin<T>(self, v: T) -> Self
pub fn set_allow_net_admin<T>(self, v: T) -> Self
Sets the value of allow_net_admin.
Sourcepub fn set_or_clear_allow_net_admin<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_allow_net_admin<T>(self, v: Option<T>) -> Self
Sets or clears the value of allow_net_admin.
Sourcepub fn set_autopilot_compatibility_auditing_enabled<T>(self, v: T) -> Self
pub fn set_autopilot_compatibility_auditing_enabled<T>(self, v: T) -> Self
Sets the value of autopilot_compatibility_auditing_enabled.
Sourcepub fn set_or_clear_autopilot_compatibility_auditing_enabled<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_autopilot_compatibility_auditing_enabled<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of autopilot_compatibility_auditing_enabled.
Trait Implementations§
Source§impl Clone for WorkloadPolicyConfig
impl Clone for WorkloadPolicyConfig
Source§fn clone(&self) -> WorkloadPolicyConfig
fn clone(&self) -> WorkloadPolicyConfig
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 WorkloadPolicyConfig
impl Debug for WorkloadPolicyConfig
Source§impl Default for WorkloadPolicyConfig
impl Default for WorkloadPolicyConfig
Source§fn default() -> WorkloadPolicyConfig
fn default() -> WorkloadPolicyConfig
Returns the “default value” for a type. Read more
Source§impl Message for WorkloadPolicyConfig
impl Message for WorkloadPolicyConfig
Source§impl PartialEq for WorkloadPolicyConfig
impl PartialEq for WorkloadPolicyConfig
impl StructuralPartialEq for WorkloadPolicyConfig
Auto Trait Implementations§
impl Freeze for WorkloadPolicyConfig
impl RefUnwindSafe for WorkloadPolicyConfig
impl Send for WorkloadPolicyConfig
impl Sync for WorkloadPolicyConfig
impl Unpin for WorkloadPolicyConfig
impl UnwindSafe for WorkloadPolicyConfig
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