pub struct HttpConfig {
pub timeout_seconds: u64,
pub max_retries: usize,
pub base_delay_seconds: u64,
pub exponential_backoff: bool,
pub headers: HashMap<String, String>,
}
Expand description
Configuration for HTTP requests
Fields§
§timeout_seconds: u64
Request timeout in seconds
max_retries: usize
Maximum number of retries
base_delay_seconds: u64
Base delay between retries in seconds
exponential_backoff: bool
Whether to use exponential backoff
headers: HashMap<String, String>
Custom headers to include in requests
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
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 HttpConfig
impl Debug for HttpConfig
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnwindSafe for HttpConfig
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