Struct k8s_openapi::v1_11::api::networking::v1::IPBlock[][src]

pub struct IPBlock {
    pub cidr: String,
    pub except: Option<Vec<String>>,
}

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 is a string representing the IP Block Valid examples are "192.168.1.1/24"

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for IPBlock
[src]

Formats the value using the given formatter. Read more

impl Default for IPBlock
[src]

Returns the "default value" for a type. Read more

impl PartialEq for IPBlock
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for IPBlock
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for IPBlock
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for IPBlock

impl Sync for IPBlock