Struct garage_util::config::ConsulDiscoveryConfig
source · pub struct ConsulDiscoveryConfig {
pub consul_http_addr: String,
pub service_name: String,
pub ca_cert: Option<String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub tls_skip_verify: bool,
}
Fields§
§consul_http_addr: String
Consul http or https address to connect to to discover more peers
service_name: String
Consul service name to use
ca_cert: Option<String>
CA TLS certificate to use when connecting to Consul
client_cert: Option<String>
Client TLS certificate to use when connecting to Consul
client_key: Option<String>
Client TLS key to use when connecting to Consul
tls_skip_verify: bool
Skip TLS hostname verification
Trait Implementations§
source§impl Clone for ConsulDiscoveryConfig
impl Clone for ConsulDiscoveryConfig
source§fn clone(&self) -> ConsulDiscoveryConfig
fn clone(&self) -> ConsulDiscoveryConfig
Returns a copy 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 ConsulDiscoveryConfig
impl Debug for ConsulDiscoveryConfig
source§impl<'de> Deserialize<'de> for ConsulDiscoveryConfig
impl<'de> Deserialize<'de> for ConsulDiscoveryConfig
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