Struct conjure_runtime_config::SecurityConfig[][src]

pub struct SecurityConfig { /* fields omitted */ }

Security configuration used to communicate with a service.

Implementations

impl SecurityConfig[src]

pub fn builder() -> SecurityConfigBuilder[src]

Returns a new builder.

pub fn ca_file(&self) -> Option<&Path>[src]

The path to a file containing PEM-formatted root certificates trusted to identify the service.

These certificates are used in addition to the system’s root CA list.

pub fn key_file(&self) -> Option<&Path>[src]

The path to a file containing a PEM-formatted private key used for client certificate authentication.

This key is expected to match the leaf certificate in Self::cert_file.

pub fn cert_file(&self) -> Option<&Path>[src]

The path to a file containing PEM-formatted certificates used for client certificate authentication.

The file should start with the leaf certificate corresponding to the key in Self::key_file, and the contain the remainder of the certificate chain to a trusted root.

Trait Implementations

impl Clone for SecurityConfig[src]

impl Debug for SecurityConfig[src]

impl Default for SecurityConfig[src]

impl<'de> Deserialize<'de> for SecurityConfig[src]

impl From<SecurityConfig> for SecurityConfigBuilder[src]

impl PartialEq<SecurityConfig> for SecurityConfig[src]

impl StructuralPartialEq for SecurityConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.