Struct ccsr::config::ClientConfig [−][src]
pub struct ClientConfig {
url: Url,
root_certs: Vec<Certificate>,
identity: Option<Identity>,
auth: Option<Auth>,
}
Expand description
Configuration for a Client
.
Fields
url: Url
root_certs: Vec<Certificate>
identity: Option<Identity>
auth: Option<Auth>
Implementations
Constructs a new ClientConfig
that will target the schema registry at
the specified URL.
Adds a trusted root TLS certificate.
Certificates in the system’s certificate store are trusted by default.
Enables TLS client authentication with the provided identity.
Enables HTTP basic authentication with the specified username and optional password.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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