pub struct Tls {
pub require_tls: Option<bool>,
pub root_certificates_file: Option<String>,
}Expand description
TLS options for connecting to a NATS server.
JSON schema
{
"description": "TLS options for connecting to a NATS server.",
"type": "object",
"properties": {
"require_tls": {
"description": "Require an encrypted connection; refuse to connect to servers that\ndo not offer TLS.",
"type": "boolean"
},
"root_certificates_file": {
"description": "Path to a PEM file with additional root certificates to trust when\nverifying the server certificate, for servers whose certificates\nare not signed by a public CA.",
"examples": [
"/path/to/ca.crt"
],
"type": "string"
}
}
}Fields§
§require_tls: Option<bool>Require an encrypted connection; refuse to connect to servers that do not offer TLS.
root_certificates_file: Option<String>Path to a PEM file with additional root certificates to trust when verifying the server certificate, for servers whose certificates are not signed by a public CA.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tls
impl<'de> Deserialize<'de> for Tls
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 Tls
impl RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnsafeUnpin for Tls
impl UnwindSafe for Tls
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