pub struct CertInfo {
pub common_name: Option<String>,
pub subject: String,
pub serial: Option<String>,
pub organization: Option<String>,
}Expand description
TLS certificate information extracted from peer
Fields§
§common_name: Option<String>Common Name from certificate subject
subject: StringFull subject distinguished name
serial: Option<String>Certificate serial number
organization: Option<String>Organization
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CertInfo
impl<'de> Deserialize<'de> for CertInfo
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 CertInfo
impl StructuralPartialEq for CertInfo
Auto Trait Implementations§
impl Freeze for CertInfo
impl RefUnwindSafe for CertInfo
impl Send for CertInfo
impl Sync for CertInfo
impl Unpin for CertInfo
impl UnsafeUnpin for CertInfo
impl UnwindSafe for CertInfo
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