Struct k8s_openapi::v1_8::api::networking::v1::IPBlock [−][src]
IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
Fields
cidr: String
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
except: Option<Vec<String>>
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
Trait Implementations
impl Clone for IPBlock
[src]
impl Clone for IPBlock
fn clone(&self) -> IPBlock
[src]
fn clone(&self) -> IPBlock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for IPBlock
[src]
impl Debug for IPBlock
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for IPBlock
[src]
impl Default for IPBlock
impl PartialEq for IPBlock
[src]
impl PartialEq for IPBlock
fn eq(&self, other: &IPBlock) -> bool
[src]
fn eq(&self, other: &IPBlock) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &IPBlock) -> bool
[src]
fn ne(&self, other: &IPBlock) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for IPBlock
[src]
impl<'de> Deserialize<'de> for IPBlock
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for IPBlock
[src]
impl Serialize for IPBlock