pub struct HttpOptions {
pub ssl_ca_info: Option<String>,
pub ssl_verify: Option<bool>,
pub ssl_cert: Option<String>,
pub ssl_key: Option<String>,
}Fields§
§ssl_ca_info: Option<String>http.sslcainfo — path to a PEM bundle of trusted CAs.
ssl_verify: Option<bool>http.sslVerify — false flips reqwest into accept-any-cert mode.
Default is true; this only stores the explicit value.
ssl_cert: Option<String>http.sslCert — path to a PEM-encoded client certificate (for
mTLS). Pairs with ssl_key.
ssl_key: Option<String>http.sslKey — path to the matching PEM-encoded private key.
Implementations§
Trait Implementations§
Source§impl Clone for HttpOptions
impl Clone for HttpOptions
Source§fn clone(&self) -> HttpOptions
fn clone(&self) -> HttpOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpOptions
impl Debug for HttpOptions
Source§impl Default for HttpOptions
impl Default for HttpOptions
Source§fn default() -> HttpOptions
fn default() -> HttpOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpOptions
impl RefUnwindSafe for HttpOptions
impl Send for HttpOptions
impl Sync for HttpOptions
impl Unpin for HttpOptions
impl UnsafeUnpin for HttpOptions
impl UnwindSafe for HttpOptions
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