#[non_exhaustive]pub struct SslCertDetail {
pub cert_info: Option<SslCert>,
pub cert_private_key: String,
/* private fields */
}
Expand description
SslCertDetail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cert_info: Option<SslCert>
The public information about the cert.
cert_private_key: String
The private key for the client cert, in pem format. Keep private in order to protect your security.
Implementations§
Source§impl SslCertDetail
impl SslCertDetail
pub fn new() -> Self
Sourcepub fn set_cert_info<T>(self, v: T) -> Self
pub fn set_cert_info<T>(self, v: T) -> Self
Sets the value of cert_info.
Sourcepub fn set_or_clear_cert_info<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cert_info<T>(self, v: Option<T>) -> Self
Sets or clears the value of cert_info.
Sourcepub fn set_cert_private_key<T: Into<String>>(self, v: T) -> Self
pub fn set_cert_private_key<T: Into<String>>(self, v: T) -> Self
Sets the value of cert_private_key.
Trait Implementations§
Source§impl Clone for SslCertDetail
impl Clone for SslCertDetail
Source§fn clone(&self) -> SslCertDetail
fn clone(&self) -> SslCertDetail
Returns a duplicate 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 moreSource§impl Debug for SslCertDetail
impl Debug for SslCertDetail
Source§impl Default for SslCertDetail
impl Default for SslCertDetail
Source§fn default() -> SslCertDetail
fn default() -> SslCertDetail
Returns the “default value” for a type. Read more
Source§impl Message for SslCertDetail
impl Message for SslCertDetail
Source§impl PartialEq for SslCertDetail
impl PartialEq for SslCertDetail
impl StructuralPartialEq for SslCertDetail
Auto Trait Implementations§
impl Freeze for SslCertDetail
impl RefUnwindSafe for SslCertDetail
impl Send for SslCertDetail
impl Sync for SslCertDetail
impl Unpin for SslCertDetail
impl UnwindSafe for SslCertDetail
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