Struct k8s_openapi::api::extensions::v1beta1::NetworkPolicyEgressRule [−][src]
pub struct NetworkPolicyEgressRule { pub ports: Option<Vec<NetworkPolicyPort>>, pub to: Option<Vec<NetworkPolicyPeer>>, }
Expand description
DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec’s podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
Fields
ports: Option<Vec<NetworkPolicyPort>>
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
to: Option<Vec<NetworkPolicyPeer>>
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
Trait Implementations
impl Clone for NetworkPolicyEgressRule
[src]
impl Clone for NetworkPolicyEgressRule
[src]fn clone(&self) -> NetworkPolicyEgressRule
[src]
fn clone(&self) -> NetworkPolicyEgressRule
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for NetworkPolicyEgressRule
[src]
impl Debug for NetworkPolicyEgressRule
[src]impl Default for NetworkPolicyEgressRule
[src]
impl Default for NetworkPolicyEgressRule
[src]fn default() -> NetworkPolicyEgressRule
[src]
fn default() -> NetworkPolicyEgressRule
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for NetworkPolicyEgressRule
[src]
impl<'de> Deserialize<'de> for NetworkPolicyEgressRule
[src]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>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<NetworkPolicyEgressRule> for NetworkPolicyEgressRule
[src]
impl PartialEq<NetworkPolicyEgressRule> for NetworkPolicyEgressRule
[src]fn eq(&self, other: &NetworkPolicyEgressRule) -> bool
[src]
fn eq(&self, other: &NetworkPolicyEgressRule) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &NetworkPolicyEgressRule) -> bool
[src]
fn ne(&self, other: &NetworkPolicyEgressRule) -> bool
[src]This method tests for !=
.
impl Serialize for NetworkPolicyEgressRule
[src]
impl Serialize for NetworkPolicyEgressRule
[src]impl StructuralPartialEq for NetworkPolicyEgressRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for NetworkPolicyEgressRule
impl Send for NetworkPolicyEgressRule
impl Sync for NetworkPolicyEgressRule
impl Unpin for NetworkPolicyEgressRule
impl UnwindSafe for NetworkPolicyEgressRule
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,