pub struct HttpClientConfig {
pub base_url: String,
pub timeout_secs: u64,
pub max_retries: u32,
pub retry_delay_ms: u64,
pub default_headers: HashMap<String, String>,
pub auth: Option<HttpAuth>,
pub enable_logging: bool,
}Expand description
HTTP client configuration for REST API integration.
Fields§
§base_url: StringBase URL for API requests.
timeout_secs: u64Request timeout in seconds.
max_retries: u32Maximum number of retries.
retry_delay_ms: u64Retry delay in milliseconds.
default_headers: HashMap<String, String>Default headers for all requests.
auth: Option<HttpAuth>Authentication configuration.
enable_logging: boolEnable request/response logging.
Trait Implementations§
Source§impl Clone for HttpClientConfig
impl Clone for HttpClientConfig
Source§fn clone(&self) -> HttpClientConfig
fn clone(&self) -> HttpClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpClientConfig
impl Debug for HttpClientConfig
Source§impl Default for HttpClientConfig
impl Default for HttpClientConfig
Source§impl<'de> Deserialize<'de> for HttpClientConfig
impl<'de> Deserialize<'de> for HttpClientConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpClientConfig
impl RefUnwindSafe for HttpClientConfig
impl Send for HttpClientConfig
impl Sync for HttpClientConfig
impl Unpin for HttpClientConfig
impl UnsafeUnpin for HttpClientConfig
impl UnwindSafe for HttpClientConfig
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