#[non_exhaustive]pub struct WorkloadPolicyConfig {
pub allow_net_admin: Option<bool>,
}Expand description
WorkloadPolicyConfig is the configuration of workload policy for autopilot clusters.
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.
Implementations§
Source§impl WorkloadPolicyConfig
impl WorkloadPolicyConfig
Sourcepub fn set_allow_net_admin<T: Into<Option<bool>>>(self, v: T) -> Self
pub fn set_allow_net_admin<T: Into<Option<bool>>>(self, v: T) -> Self
Sets the value of allow_net_admin.
Trait Implementations§
Source§impl Clone for WorkloadPolicyConfig
impl Clone for WorkloadPolicyConfig
Source§fn clone(&self) -> WorkloadPolicyConfig
fn clone(&self) -> WorkloadPolicyConfig
Returns a copy 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<'de> Deserialize<'de> for WorkloadPolicyConfigwhere
WorkloadPolicyConfig: Default,
impl<'de> Deserialize<'de> for WorkloadPolicyConfigwhere
WorkloadPolicyConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for WorkloadPolicyConfig
impl Message for WorkloadPolicyConfig
Source§impl PartialEq for WorkloadPolicyConfig
impl PartialEq for WorkloadPolicyConfig
Source§impl Serialize for WorkloadPolicyConfig
impl Serialize 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