pub struct TlsSection {
pub cert: String,
pub key: String,
}Expand description
The [tls] configuration table: paths to a PEM certificate chain and
private key.
Only meaningful when the tls feature is enabled; otherwise the paths are
ignored. Set it on a builder with AppBuilder::tls.
Fields§
§cert: StringPath to the PEM-encoded certificate chain file.
key: StringPath to the PEM-encoded private key file.
Trait Implementations§
Source§impl Clone for TlsSection
impl Clone for TlsSection
Source§fn clone(&self) -> TlsSection
fn clone(&self) -> TlsSection
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 TlsSection
impl Debug for TlsSection
Source§impl<'de> Deserialize<'de> for TlsSection
impl<'de> Deserialize<'de> for TlsSection
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
Auto Trait Implementations§
impl Freeze for TlsSection
impl RefUnwindSafe for TlsSection
impl Send for TlsSection
impl Sync for TlsSection
impl Unpin for TlsSection
impl UnsafeUnpin for TlsSection
impl UnwindSafe for TlsSection
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