pub struct ServerConfiguration {
pub key: Option<ServerConfigurationKey>,
pub value: Option<ServerConfigurationValue>,
}Fields§
§key: Option<ServerConfigurationKey>§value: Option<ServerConfigurationValue>Trait Implementations§
Source§impl Arbitrary for ServerConfiguration
impl Arbitrary for ServerConfiguration
Source§type Parameters = (<Option<ServerConfigurationKey> as Arbitrary>::Parameters, <Option<ServerConfigurationValue> as Arbitrary>::Parameters)
type Parameters = (<Option<ServerConfigurationKey> as Arbitrary>::Parameters, <Option<ServerConfigurationValue> 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<(<Option<ServerConfigurationKey> as Arbitrary>::Strategy, <Option<ServerConfigurationValue> as Arbitrary>::Strategy), fn((Option<ServerConfigurationKey>, Option<ServerConfigurationValue>)) -> ServerConfiguration>
type Strategy = Map<(<Option<ServerConfigurationKey> as Arbitrary>::Strategy, <Option<ServerConfigurationValue> as Arbitrary>::Strategy), fn((Option<ServerConfigurationKey>, Option<ServerConfigurationValue>)) -> ServerConfiguration>
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 ServerConfiguration
impl Clone for ServerConfiguration
Source§fn clone(&self) -> ServerConfiguration
fn clone(&self) -> ServerConfiguration
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 ServerConfiguration
impl Debug for ServerConfiguration
Source§impl Default for ServerConfiguration
impl Default for ServerConfiguration
Source§fn default() -> ServerConfiguration
fn default() -> ServerConfiguration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerConfiguration
impl<'de> Deserialize<'de> for ServerConfiguration
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 ServerConfiguration
Source§impl Ord for ServerConfiguration
impl Ord for ServerConfiguration
Source§fn cmp(&self, other: &ServerConfiguration) -> Ordering
fn cmp(&self, other: &ServerConfiguration) -> 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 ServerConfiguration
impl PartialEq for ServerConfiguration
Source§impl PartialOrd for ServerConfiguration
impl PartialOrd for ServerConfiguration
Source§impl Serialize for ServerConfiguration
impl Serialize for ServerConfiguration
impl StructuralPartialEq for ServerConfiguration
Auto Trait Implementations§
impl Freeze for ServerConfiguration
impl RefUnwindSafe for ServerConfiguration
impl Send for ServerConfiguration
impl Sync for ServerConfiguration
impl Unpin for ServerConfiguration
impl UnsafeUnpin for ServerConfiguration
impl UnwindSafe for ServerConfiguration
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