pub struct NetworkProperty {
pub key: String,
pub value: Option<String>,
}Expand description
An order-preserving property used by the broad -nic and legacy -net syntaxes.
Fields§
§key: String§value: Option<String>Trait Implementations§
Source§impl Arbitrary for NetworkProperty
impl Arbitrary for NetworkProperty
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Option<String> 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, <Option<String> as Arbitrary>::Strategy), fn((String, Option<String>)) -> NetworkProperty>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy), fn((String, Option<String>)) -> NetworkProperty>
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 NetworkProperty
impl Clone for NetworkProperty
Source§fn clone(&self) -> NetworkProperty
fn clone(&self) -> NetworkProperty
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 NetworkProperty
impl Debug for NetworkProperty
impl Eq for NetworkProperty
Source§impl Hash for NetworkProperty
impl Hash for NetworkProperty
Source§impl Ord for NetworkProperty
impl Ord for NetworkProperty
Source§fn cmp(&self, other: &NetworkProperty) -> Ordering
fn cmp(&self, other: &NetworkProperty) -> 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
Source§impl PartialEq for NetworkProperty
impl PartialEq for NetworkProperty
Source§impl PartialOrd for NetworkProperty
impl PartialOrd for NetworkProperty
impl StructuralPartialEq for NetworkProperty
Auto Trait Implementations§
impl Freeze for NetworkProperty
impl RefUnwindSafe for NetworkProperty
impl Send for NetworkProperty
impl Sync for NetworkProperty
impl Unpin for NetworkProperty
impl UnsafeUnpin for NetworkProperty
impl UnwindSafe for NetworkProperty
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