[−][src]Struct swagger::connector::HttpsBuilder
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]
CA: AsRef<Path>,
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]
self,
client_key: K,
client_certificate: C
) -> Self where
K: AsRef<Path>,
C: AsRef<Path>,
Provide the Client Certificate and Key for the connection for Mutual TLS
Arguments
client_key
- Path to the client private keyclient_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
Auto Trait Implementations
impl RefUnwindSafe for HttpsBuilder
impl Send for HttpsBuilder
impl Sync for HttpsBuilder
impl Unpin for HttpsBuilder
impl UnwindSafe for HttpsBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,