pub enum MssqlTlsMode {
Prefer,
Require,
TrustServerCertificate,
Disable,
}Expand description
MSSQL encryption mode.
Variants§
Prefer
Encrypt the connection if the server supports it (the safe modern
default). Maps to tiberius EncryptionLevel::On.
Require
Require encryption; fail if the server does not offer it. Maps to
EncryptionLevel::Required.
TrustServerCertificate
Encrypt and accept the server certificate without validating its chain
(self-signed dev servers). Maps to EncryptionLevel::On + trust_cert().
Insecure against MITM — never use in production.
Disable
No transport encryption. Maps to EncryptionLevel::NotSupported.
Trait Implementations§
Source§impl Clone for MssqlTlsMode
impl Clone for MssqlTlsMode
Source§fn clone(&self) -> MssqlTlsMode
fn clone(&self) -> MssqlTlsMode
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 MssqlTlsMode
impl Debug for MssqlTlsMode
Source§impl Default for MssqlTlsMode
impl Default for MssqlTlsMode
Source§fn default() -> MssqlTlsMode
fn default() -> MssqlTlsMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MssqlTlsMode
impl<'de> Deserialize<'de> for MssqlTlsMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MssqlTlsMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MssqlTlsMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MssqlTlsMode
impl JsonSchema for MssqlTlsMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MssqlTlsMode
impl PartialEq for MssqlTlsMode
Source§fn eq(&self, other: &MssqlTlsMode) -> bool
fn eq(&self, other: &MssqlTlsMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MssqlTlsMode
impl Serialize for MssqlTlsMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for MssqlTlsMode
impl Eq for MssqlTlsMode
impl StructuralPartialEq for MssqlTlsMode
Auto Trait Implementations§
impl Freeze for MssqlTlsMode
impl RefUnwindSafe for MssqlTlsMode
impl Send for MssqlTlsMode
impl Sync for MssqlTlsMode
impl Unpin for MssqlTlsMode
impl UnsafeUnpin for MssqlTlsMode
impl UnwindSafe for MssqlTlsMode
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.