pub struct NetworkPolicyValue {
pub name: String,
pub rules: Vec<NetworkPolicyRule>,
pub owner_id: RoleId,
pub privileges: Vec<MzAclItem>,
pub oid: u32,
}Fields§
§name: String§rules: Vec<NetworkPolicyRule>§owner_id: RoleId§privileges: Vec<MzAclItem>§oid: u32Trait Implementations§
Source§impl Arbitrary for NetworkPolicyValue
impl Arbitrary for NetworkPolicyValue
Source§type Parameters = (<String as Arbitrary>::Parameters, <Vec<NetworkPolicyRule> as Arbitrary>::Parameters, <RoleId as Arbitrary>::Parameters, <Vec<MzAclItem> as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Vec<NetworkPolicyRule> as Arbitrary>::Parameters, <RoleId as Arbitrary>::Parameters, <Vec<MzAclItem> as Arbitrary>::Parameters, <u32 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, <Vec<NetworkPolicyRule> as Arbitrary>::Strategy, <RoleId as Arbitrary>::Strategy, <Vec<MzAclItem> as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy), fn((String, Vec<NetworkPolicyRule>, RoleId, Vec<MzAclItem>, u32)) -> NetworkPolicyValue>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Vec<NetworkPolicyRule> as Arbitrary>::Strategy, <RoleId as Arbitrary>::Strategy, <Vec<MzAclItem> as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy), fn((String, Vec<NetworkPolicyRule>, RoleId, Vec<MzAclItem>, u32)) -> NetworkPolicyValue>
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 NetworkPolicyValue
impl Clone for NetworkPolicyValue
Source§fn clone(&self) -> NetworkPolicyValue
fn clone(&self) -> NetworkPolicyValue
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 NetworkPolicyValue
impl Debug for NetworkPolicyValue
Source§impl<'de> Deserialize<'de> for NetworkPolicyValue
impl<'de> Deserialize<'de> for NetworkPolicyValue
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 NetworkPolicyValue
Source§impl Ord for NetworkPolicyValue
impl Ord for NetworkPolicyValue
Source§fn cmp(&self, other: &NetworkPolicyValue) -> Ordering
fn cmp(&self, other: &NetworkPolicyValue) -> 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 NetworkPolicyValue
impl PartialEq for NetworkPolicyValue
Source§impl PartialOrd for NetworkPolicyValue
impl PartialOrd for NetworkPolicyValue
Source§impl Serialize for NetworkPolicyValue
impl Serialize for NetworkPolicyValue
impl StructuralPartialEq for NetworkPolicyValue
Auto Trait Implementations§
impl Freeze for NetworkPolicyValue
impl RefUnwindSafe for NetworkPolicyValue
impl Send for NetworkPolicyValue
impl Sync for NetworkPolicyValue
impl Unpin for NetworkPolicyValue
impl UnsafeUnpin for NetworkPolicyValue
impl UnwindSafe for NetworkPolicyValue
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