[][src]Struct swagger::connector::HttpsBuilder

pub struct HttpsBuilder { /* fields omitted */ }

Builder for HTTPS connectors

Methods

impl HttpsBuilder[src]

pub fn dns_threads(self, threads: usize) -> Self[src]

Configure the number of threads. Default is 4.

pub fn pin_server_certificate<CA>(self, ca_certificate: CA) -> Self where
    CA: AsRef<Path>, 
[src]

Pin the CA certificate for the server's certificate.

Arguments

  • ca_certificate - Path to CA certificate used to authenticate the server

pub fn client_authentication<K, C>(
    self,
    client_key: K,
    client_certificate: C
) -> Self where
    K: AsRef<Path>,
    C: AsRef<Path>, 
[src]

Provide the Client Certificate and Key for the connection for Mutual TLS

Arguments

  • client_key - Path to the client private key
  • client_certificate - Path to the client's public certificate associated with the private key

pub fn build(self) -> Result<HttpsConnector<HttpConnector>, ErrorStack>[src]

Build the HTTPS connector. Will fail if the provided certificates/keys can't be loaded or the SSL connector can't be created

Trait Implementations

impl Debug for HttpsBuilder[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> From<T> for T[src]

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

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.