Struct mysql_async::SslOpts
source · pub struct SslOpts { /* private fields */ }
Expand description
Ssl Options.
Implementations§
source§impl SslOpts
impl SslOpts
pub fn new() -> SslOpts
sourcepub fn set_pkcs12_path<T: Into<Cow<'static, Path>>>(
&mut self,
pkcs12_path: Option<T>
) -> &mut Self
pub fn set_pkcs12_path<T: Into<Cow<'static, Path>>>(
&mut self,
pkcs12_path: Option<T>
) -> &mut Self
Sets path to the pkcs12 archive.
sourcepub fn set_password<T: Into<Cow<'static, str>>>(
&mut self,
password: Option<T>
) -> &mut Self
pub fn set_password<T: Into<Cow<'static, str>>>(
&mut self,
password: Option<T>
) -> &mut Self
Sets the password for a pkcs12 archive (defaults to None
).
sourcepub fn set_root_cert_path<T: Into<Cow<'static, Path>>>(
&mut self,
root_cert_path: Option<T>
) -> &mut Self
pub fn set_root_cert_path<T: Into<Cow<'static, Path>>>(
&mut self,
root_cert_path: Option<T>
) -> &mut Self
Sets path to a der certificate of the root that connector will trust.
sourcepub fn set_danger_skip_domain_validation(&mut self, value: bool) -> &mut Self
pub fn set_danger_skip_domain_validation(&mut self, value: bool) -> &mut Self
The way to not validate the server’s domain
name against its certificate (defaults to false
).