#[non_exhaustive]pub enum NetworkPolicyType {
Allowlist,
Disabled,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for NetworkPolicyType
impl Clone for NetworkPolicyType
Source§fn clone(&self) -> NetworkPolicyType
fn clone(&self) -> NetworkPolicyType
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 NetworkPolicyType
impl Debug for NetworkPolicyType
Source§impl<'de> Deserialize<'de> for NetworkPolicyType
impl<'de> Deserialize<'de> for NetworkPolicyType
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
impl Eq for NetworkPolicyType
Source§impl PartialEq for NetworkPolicyType
impl PartialEq for NetworkPolicyType
Source§impl Serialize for NetworkPolicyType
impl Serialize for NetworkPolicyType
impl StructuralPartialEq for NetworkPolicyType
Auto Trait Implementations§
impl Freeze for NetworkPolicyType
impl RefUnwindSafe for NetworkPolicyType
impl Send for NetworkPolicyType
impl Sync for NetworkPolicyType
impl Unpin for NetworkPolicyType
impl UnsafeUnpin for NetworkPolicyType
impl UnwindSafe for NetworkPolicyType
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