pub struct NetworkPolicyRule {
pub name: String,
pub address: String,
pub action: Option<Action>,
pub direction: Option<Direction>,
}Fields§
§name: String§address: String§action: Option<Action>§direction: Option<Direction>Trait Implementations§
Source§impl Arbitrary for NetworkPolicyRule
impl Arbitrary for NetworkPolicyRule
Source§type Parameters = (<String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <Option<Action> as Arbitrary>::Parameters, <Option<Direction> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <Option<Action> as Arbitrary>::Parameters, <Option<Direction> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <String as Arbitrary>::Strategy, <Option<Action> as Arbitrary>::Strategy, <Option<Direction> as Arbitrary>::Strategy), fn((String, String, Option<Action>, Option<Direction>)) -> NetworkPolicyRule>
type Strategy = Map<(<String as Arbitrary>::Strategy, <String as Arbitrary>::Strategy, <Option<Action> as Arbitrary>::Strategy, <Option<Direction> as Arbitrary>::Strategy), fn((String, String, Option<Action>, Option<Direction>)) -> NetworkPolicyRule>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for NetworkPolicyRule
impl Clone for NetworkPolicyRule
Source§fn clone(&self) -> NetworkPolicyRule
fn clone(&self) -> NetworkPolicyRule
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 NetworkPolicyRule
impl Debug for NetworkPolicyRule
Source§impl Default for NetworkPolicyRule
impl Default for NetworkPolicyRule
Source§fn default() -> NetworkPolicyRule
fn default() -> NetworkPolicyRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkPolicyRule
impl<'de> Deserialize<'de> for NetworkPolicyRule
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 NetworkPolicyRule
Source§impl Ord for NetworkPolicyRule
impl Ord for NetworkPolicyRule
Source§fn cmp(&self, other: &NetworkPolicyRule) -> Ordering
fn cmp(&self, other: &NetworkPolicyRule) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NetworkPolicyRule
impl PartialEq for NetworkPolicyRule
Source§impl PartialOrd for NetworkPolicyRule
impl PartialOrd for NetworkPolicyRule
Source§impl Serialize for NetworkPolicyRule
impl Serialize for NetworkPolicyRule
impl StructuralPartialEq for NetworkPolicyRule
Auto Trait Implementations§
impl Freeze for NetworkPolicyRule
impl RefUnwindSafe for NetworkPolicyRule
impl Send for NetworkPolicyRule
impl Sync for NetworkPolicyRule
impl Unpin for NetworkPolicyRule
impl UnsafeUnpin for NetworkPolicyRule
impl UnwindSafe for NetworkPolicyRule
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