pub struct Config {
pub addr: String,
pub ca_cert: Option<String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub tls_skip_verify: bool,
}Expand description
Configuration parameters to talk to a Consul server
Fields§
§addr: StringHTTP address of the Consul server, with http:// or https:// prefix
ca_cert: Option<String>CA certificate of the Consul CA, when using TLS
client_cert: Option<String>Client certificate for client auth when using TLS
client_key: Option<String>Client key for client auth when using TLS
tls_skip_verify: boolSkip verification of consul server TLS certificates
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more