pub struct PostgresTlsConfig {
pub ssl_ca_pem: Option<String>,
pub ssl_ca_location: Option<String>,
pub ssl_client_pem: Option<String>,
pub ssl_client_location: Option<String>,
pub ssl_client_key: Option<String>,
pub ssl_client_key_location: Option<String>,
pub ssl_certificate_chain_location: Option<String>,
pub verify_hostname: Option<bool>,
}Expand description
TLS/SSL configuration for PostgreSQL connectors.
Fields§
§ssl_ca_pem: Option<String>A sequence of CA certificates in PEM format.
ssl_ca_location: Option<String>Path to a file containing a sequence of CA certificates in PEM format.
ssl_client_pem: Option<String>The client certificate in PEM format.
ssl_client_location: Option<String>Path to the client certificate.
ssl_client_key: Option<String>The client certificate key in PEM format.
ssl_client_key_location: Option<String>Path to the client certificate key.
ssl_certificate_chain_location: Option<String>The path to the certificate chain file. The file must contain a sequence of PEM-formatted certificates, the first being the leaf certificate, and the remainder forming the chain of certificates up to and including the trusted root certificate.
verify_hostname: Option<bool>True to enable hostname verification when using TLS. True by default.
Implementations§
Trait Implementations§
Source§impl Clone for PostgresTlsConfig
impl Clone for PostgresTlsConfig
Source§fn clone(&self) -> PostgresTlsConfig
fn clone(&self) -> PostgresTlsConfig
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 PostgresTlsConfig
impl Debug for PostgresTlsConfig
Source§impl Default for PostgresTlsConfig
impl Default for PostgresTlsConfig
Source§fn default() -> PostgresTlsConfig
fn default() -> PostgresTlsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresTlsConfig
impl<'de> Deserialize<'de> for PostgresTlsConfig
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 PostgresTlsConfig
impl PartialEq for PostgresTlsConfig
Source§impl Serialize for PostgresTlsConfig
impl Serialize for PostgresTlsConfig
Source§impl<'__s> ToSchema<'__s> for PostgresTlsConfig
impl<'__s> ToSchema<'__s> for PostgresTlsConfig
impl Eq for PostgresTlsConfig
impl StructuralPartialEq for PostgresTlsConfig
Auto Trait Implementations§
impl Freeze for PostgresTlsConfig
impl RefUnwindSafe for PostgresTlsConfig
impl Send for PostgresTlsConfig
impl Sync for PostgresTlsConfig
impl Unpin for PostgresTlsConfig
impl UnsafeUnpin for PostgresTlsConfig
impl UnwindSafe for PostgresTlsConfig
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.