pub struct TlsFileConfig {
pub cert: Option<String>,
pub key: Option<String>,
pub self_signed: bool,
}Expand description
TLS configuration in config file
Fields§
§cert: Option<String>Path to TLS certificate file (PEM format)
key: Option<String>Path to TLS private key file (PEM format)
self_signed: boolGenerate a self-signed certificate
Trait Implementations§
Source§impl Clone for TlsFileConfig
impl Clone for TlsFileConfig
Source§fn clone(&self) -> TlsFileConfig
fn clone(&self) -> TlsFileConfig
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 TlsFileConfig
impl Debug for TlsFileConfig
Source§impl Default for TlsFileConfig
impl Default for TlsFileConfig
Source§fn default() -> TlsFileConfig
fn default() -> TlsFileConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TlsFileConfigwhere
TlsFileConfig: Default,
impl<'de> Deserialize<'de> for TlsFileConfigwhere
TlsFileConfig: Default,
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
Source§impl PartialEq for TlsFileConfig
impl PartialEq for TlsFileConfig
impl Eq for TlsFileConfig
impl StructuralPartialEq for TlsFileConfig
Auto Trait Implementations§
impl Freeze for TlsFileConfig
impl RefUnwindSafe for TlsFileConfig
impl Send for TlsFileConfig
impl Sync for TlsFileConfig
impl Unpin for TlsFileConfig
impl UnsafeUnpin for TlsFileConfig
impl UnwindSafe for TlsFileConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.