pub struct EgressNetworkPolicyPeer {
pub cidr_selector: Option<String>,
pub dns_name: Option<String>,
}
Expand description
EgressNetworkPolicyPeer specifies a target to apply egress network policy to
Fields§
§cidr_selector: Option<String>
cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset
dns_name: Option<String>
dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset
Trait Implementations§
Source§impl Clone for EgressNetworkPolicyPeer
impl Clone for EgressNetworkPolicyPeer
Source§fn clone(&self) -> EgressNetworkPolicyPeer
fn clone(&self) -> EgressNetworkPolicyPeer
Returns a duplicate 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 EgressNetworkPolicyPeer
impl Debug for EgressNetworkPolicyPeer
Source§impl Default for EgressNetworkPolicyPeer
impl Default for EgressNetworkPolicyPeer
Source§fn default() -> EgressNetworkPolicyPeer
fn default() -> EgressNetworkPolicyPeer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EgressNetworkPolicyPeer
impl<'de> Deserialize<'de> for EgressNetworkPolicyPeer
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 PartialEq for EgressNetworkPolicyPeer
impl PartialEq for EgressNetworkPolicyPeer
Source§impl Serialize for EgressNetworkPolicyPeer
impl Serialize for EgressNetworkPolicyPeer
impl StructuralPartialEq for EgressNetworkPolicyPeer
Auto Trait Implementations§
impl Freeze for EgressNetworkPolicyPeer
impl RefUnwindSafe for EgressNetworkPolicyPeer
impl Send for EgressNetworkPolicyPeer
impl Sync for EgressNetworkPolicyPeer
impl Unpin for EgressNetworkPolicyPeer
impl UnwindSafe for EgressNetworkPolicyPeer
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