pub struct HttpApiClientConfig {
pub http_timeout: Duration,
pub default_headers: HeaderMap,
pub middlewares: Vec<Arc<dyn Middleware>>,
}Fields§
§http_timeout: DurationThe maximum time limit for an API request. If a request takes longer than this, it will be cancelled.
default_headers: HeaderMapA default set of HTTP headers which will be sent with each API request.
middlewares: Vec<Arc<dyn Middleware>>Middlewares that will process each API request before the request is actually sent.
Trait Implementations§
Source§impl Clone for HttpApiClientConfig
impl Clone for HttpApiClientConfig
Source§fn clone(&self) -> HttpApiClientConfig
fn clone(&self) -> HttpApiClientConfig
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 moreAuto Trait Implementations§
impl Freeze for HttpApiClientConfig
impl !RefUnwindSafe for HttpApiClientConfig
impl Send for HttpApiClientConfig
impl Sync for HttpApiClientConfig
impl Unpin for HttpApiClientConfig
impl !UnwindSafe for HttpApiClientConfig
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