pub struct HttpClientConfiguration {
pub allow_redirects: Option<bool>,
pub cacert: Option<String>,
pub cert: Option<String>,
pub cipher: Option<Vec<CipherSuite>>,
pub curves: Option<Vec<EcdhCurve>>,
pub key: Option<String>,
pub timeout: Option<i64>,
pub tls_version: Option<String>,
pub url: Option<String>,
}Expand description
HTTPClientConfiguration is the configuration structure for HTTP clients
Fields§
§allow_redirects: Option<bool>AllowRedirects sets if the client should honor HTTP redirects. Defaults to false.
cacert: Option<String>CACert is either the CA certificate to expect on the server in PEM format or the name of a file containing the PEM.
cert: Option<String>ClientCert is a PEM containing an x509 certificate to present to the server or a file name containing the PEM.
cipher: Option<Vec<CipherSuite>>§curves: Option<Vec<EcdhCurve>>ECDHCurveList is a list of supported ECDHCurve
key: Option<String>ClientKey is a PEM containing a private key to use to connect the server or a file name containing the PEM.
timeout: Option<i64>A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
tls_version: Option<String>§url: Option<String>URL is the base URL for requests.
Implementations§
Source§impl HttpClientConfiguration
impl HttpClientConfiguration
pub fn new() -> HttpClientConfiguration
Trait Implementations§
Source§impl Clone for HttpClientConfiguration
impl Clone for HttpClientConfiguration
Source§fn clone(&self) -> HttpClientConfiguration
fn clone(&self) -> HttpClientConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HttpClientConfiguration
impl Debug for HttpClientConfiguration
Source§impl<'de> Deserialize<'de> for HttpClientConfiguration
impl<'de> Deserialize<'de> for HttpClientConfiguration
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>,
Source§impl FromStr for HttpClientConfiguration
Converts Query Parameters representation (style=form, explode=false) to a HttpClientConfiguration value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for HttpClientConfiguration
Converts Query Parameters representation (style=form, explode=false) to a HttpClientConfiguration value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for HttpClientConfiguration
impl PartialEq for HttpClientConfiguration
Source§fn eq(&self, other: &HttpClientConfiguration) -> bool
fn eq(&self, other: &HttpClientConfiguration) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for HttpClientConfiguration
impl Serialize for HttpClientConfiguration
impl StructuralPartialEq for HttpClientConfiguration
Source§impl ToString for HttpClientConfiguration
Converts the HttpClientConfiguration value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for HttpClientConfiguration
Converts the HttpClientConfiguration value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer