pub struct HttpOptions {
pub api_key: String,
pub base_url: String,
pub max_retries: u32,
pub request_timeout: Duration,
pub retry_delay_ms: Option<u64>,
}Expand description
Options for constructing an HttpTransport.
Fields§
§api_key: String§base_url: String§max_retries: u32Max retry attempts for idempotent requests. Default 5.
request_timeout: DurationPer-request timeout. Default 300s.
retry_delay_ms: Option<u64>Fixed retry delay. When None, uses exponential backoff + jitter
(mainly for tests: pass Some(0) to make retries instant/deterministic).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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