pub struct EncryptionOptions {
pub mode: EncryptionSetting,
pub trust_server_certificate: bool,
pub host_name_in_cert: Option<String>,
pub server_certificate: Option<PathBuf>,
}Expand description
TLS and encryption settings for a TDS connection.
Fields§
§mode: EncryptionSettingEncryption mode negotiated with the server.
trust_server_certificate: boolSkip server certificate chain validation.
host_name_in_cert: Option<String>Expected CN or SAN in the server certificate.
server_certificate: Option<PathBuf>Path to a DER or PEM encoded X.509 certificate file for certificate pinning. When specified, the driver performs an exact binary match between the provided certificate and the server’s certificate, bypassing standard CA chain validation.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionOptions
impl Clone for EncryptionOptions
Source§fn clone(&self) -> EncryptionOptions
fn clone(&self) -> EncryptionOptions
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 EncryptionOptions
impl Debug for EncryptionOptions
Source§impl Default for EncryptionOptions
impl Default for EncryptionOptions
Source§impl PartialEq for EncryptionOptions
impl PartialEq for EncryptionOptions
Source§fn eq(&self, other: &EncryptionOptions) -> bool
fn eq(&self, other: &EncryptionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncryptionOptions
Auto Trait Implementations§
impl Freeze for EncryptionOptions
impl RefUnwindSafe for EncryptionOptions
impl Send for EncryptionOptions
impl Sync for EncryptionOptions
impl Unpin for EncryptionOptions
impl UnsafeUnpin for EncryptionOptions
impl UnwindSafe for EncryptionOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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