Struct vsmtp_common::ProtocolVersion
pub struct ProtocolVersion(pub ProtocolVersion);
Expand description
Wrapper around rustls::ProtocolVersion
to implement serde::Deserialize
and serde::Serialize
Tuple Fields§
§0: ProtocolVersion
Trait Implementations§
§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ProtocolVersion
impl Debug for ProtocolVersion
§impl<'de> Deserialize<'de> for ProtocolVersionwhere
Self: FromStr,
<Self as FromStr>::Err: Display,
impl<'de> Deserialize<'de> for ProtocolVersionwhere Self: FromStr, <Self as FromStr>::Err: Display,
§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 Display for ProtocolVersion
impl Display for ProtocolVersion
§impl FromStr for ProtocolVersion
impl FromStr for ProtocolVersion
§impl PartialEq<ProtocolVersion> for ProtocolVersion
impl PartialEq<ProtocolVersion> for ProtocolVersion
§fn eq(&self, other: &ProtocolVersion) -> bool
fn eq(&self, other: &ProtocolVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.