pub struct SecuritySettings {
pub cipher: String,
pub tls_min_version: String,
pub tls_auth: bool,
pub tls_crypt: bool,
pub cert_lifetime_days: u32,
pub client_cert_lifetime_days: u32,
pub reneg_sec: u32,
pub pfs: bool,
}Expand description
Security settings
Fields§
§cipher: StringCipher suite (chacha20-poly1305 or aes-256-gcm)
tls_min_version: StringTLS minimum version (1.3)
tls_auth: boolEnable tls-auth
tls_crypt: boolEnable tls-crypt (stronger than tls-auth)
cert_lifetime_days: u32Certificate lifetime in days
client_cert_lifetime_days: u32Client certificate lifetime in days
reneg_sec: u32Renegotiation interval in seconds
pfs: boolEnable perfect forward secrecy
Trait Implementations§
Source§impl Clone for SecuritySettings
impl Clone for SecuritySettings
Source§fn clone(&self) -> SecuritySettings
fn clone(&self) -> SecuritySettings
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 SecuritySettings
impl Debug for SecuritySettings
Source§impl<'de> Deserialize<'de> for SecuritySettings
impl<'de> Deserialize<'de> for SecuritySettings
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 SecuritySettings
impl RefUnwindSafe for SecuritySettings
impl Send for SecuritySettings
impl Sync for SecuritySettings
impl Unpin for SecuritySettings
impl UnwindSafe for SecuritySettings
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