Struct consul_rs::api::TLSConfig[][src]

pub struct TLSConfig {
    pub address: Option<String>,
    pub ca_file: Option<String>,
    pub ca_path: Option<String>,
    pub ca_pem: Option<String>,
    pub cert_file: Option<String>,
    pub cert_pem: Option<String>,
    pub key_file: Option<String>,
    pub key_pem: Option<String>,
    pub insecure_skip_verify: Option<bool>,
}
Expand description

TLSConfig is used to generate a TLSClientConfig that’s useful for talking to Consul using TLS.

Fields

address: Option<String>

Address is the optional address of the Consul server. The port, if any will be removed from here and this will be set to the ServerName of the resulting config.

ca_file: Option<String>

CAFile is the optional path to the CA certificate used for Consul communication, defaults to the system bundle if not specified.

ca_path: Option<String>

CAPath is the optional path to a directory of CA certificates to use for Consul communication, defaults to the system bundle if not specified.

ca_pem: Option<String>

CAPem is the optional PEM-encoded CA certificate used for Consul communication, defaults to the system bundle if not specified.

cert_file: Option<String>

CertFile is the optional path to the certificate for Consul communication. If this is set then you need to also set KeyFile.

cert_pem: Option<String>

CertPEM is the optional PEM-encoded certificate for Consul communication. If this is set then you need to also set KeyPEM.

key_file: Option<String>

KeyFile is the optional path to the private key for Consul communication. If this is set then you need to also set CertFile.

key_pem: Option<String>

KeyPEM is the optional PEM-encoded private key for Consul communication. If this is set then you need to also set CertPEM.

insecure_skip_verify: Option<bool>

InsecureSkipVerify if set to true will disable TLS host verification.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more