pub struct ClientTlsConfig {
pub ca: Option<PathBuf>,
pub cert: Option<PathBuf>,
pub key: Option<PathBuf>,
pub domain: Option<String>,
}Expand description
Upstream TLS/mTLS settings for a gRPC client.
Fields§
§ca: Option<PathBuf>PEM CA certificate(s) to verify the upstream. When omitted, the platform’s system roots are used.
cert: Option<PathBuf>PEM client certificate for mTLS (presenting an identity to the upstream).
Requires key.
key: Option<PathBuf>PEM client private key for mTLS. Requires cert.
domain: Option<String>SNI / domain name to validate the upstream certificate against, when it differs from the address host (e.g. behind a load balancer).
Trait Implementations§
Source§impl Clone for ClientTlsConfig
impl Clone for ClientTlsConfig
Source§impl Debug for ClientTlsConfig
impl Debug for ClientTlsConfig
Source§impl<'de> Deserialize<'de> for ClientTlsConfig
impl<'de> Deserialize<'de> for ClientTlsConfig
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 ClientTlsConfig
impl RefUnwindSafe for ClientTlsConfig
impl Send for ClientTlsConfig
impl Sync for ClientTlsConfig
impl Unpin for ClientTlsConfig
impl UnsafeUnpin for ClientTlsConfig
impl UnwindSafe for ClientTlsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request