#[non_exhaustive]pub struct NetworkPolicyConfig {
pub disabled: bool,
}Expand description
Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
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.disabled: boolWhether NetworkPolicy is enabled for this cluster.
Implementations§
Source§impl NetworkPolicyConfig
impl NetworkPolicyConfig
Sourcepub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of disabled.
Trait Implementations§
Source§impl Clone for NetworkPolicyConfig
impl Clone for NetworkPolicyConfig
Source§fn clone(&self) -> NetworkPolicyConfig
fn clone(&self) -> NetworkPolicyConfig
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 NetworkPolicyConfig
impl Debug for NetworkPolicyConfig
Source§impl Default for NetworkPolicyConfig
impl Default for NetworkPolicyConfig
Source§fn default() -> NetworkPolicyConfig
fn default() -> NetworkPolicyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkPolicyConfigwhere
NetworkPolicyConfig: Default,
impl<'de> Deserialize<'de> for NetworkPolicyConfigwhere
NetworkPolicyConfig: 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 NetworkPolicyConfig
impl Message for NetworkPolicyConfig
Source§impl PartialEq for NetworkPolicyConfig
impl PartialEq for NetworkPolicyConfig
Source§impl Serialize for NetworkPolicyConfig
impl Serialize for NetworkPolicyConfig
impl StructuralPartialEq for NetworkPolicyConfig
Auto Trait Implementations§
impl Freeze for NetworkPolicyConfig
impl RefUnwindSafe for NetworkPolicyConfig
impl Send for NetworkPolicyConfig
impl Sync for NetworkPolicyConfig
impl Unpin for NetworkPolicyConfig
impl UnwindSafe for NetworkPolicyConfig
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