Struct google_container1::api::NetworkPolicy
source · pub struct NetworkPolicy {
pub enabled: Option<bool>,
pub provider: Option<String>,
}
Expand description
Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
This type is not used in any activity, and only used as part of another schema.
Fields§
§enabled: Option<bool>
Whether network policy is enabled on the cluster.
provider: Option<String>
The selected network policy provider.
Trait Implementations§
source§impl Clone for NetworkPolicy
impl Clone for NetworkPolicy
source§fn clone(&self) -> NetworkPolicy
fn clone(&self) -> NetworkPolicy
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 NetworkPolicy
impl Debug for NetworkPolicy
source§impl Default for NetworkPolicy
impl Default for NetworkPolicy
source§fn default() -> NetworkPolicy
fn default() -> NetworkPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NetworkPolicy
impl<'de> Deserialize<'de> for NetworkPolicy
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 Serialize for NetworkPolicy
impl Serialize for NetworkPolicy
impl Part for NetworkPolicy
Auto Trait Implementations§
impl RefUnwindSafe for NetworkPolicy
impl Send for NetworkPolicy
impl Sync for NetworkPolicy
impl Unpin for NetworkPolicy
impl UnwindSafe for NetworkPolicy
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