pub struct HttpOptions {
pub base_url: Option<String>,
pub api_version: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub timeout: Option<u64>,
pub extra_body: Option<Value>,
pub retry_options: Option<HttpRetryOptions>,
}Expand description
HTTP options to be used in each of the requests.
Fields§
§base_url: Option<String>§api_version: Option<String>§headers: Option<HashMap<String, String>>§timeout: Option<u64>Timeout for the request in milliseconds.
extra_body: Option<Value>Extra parameters to add to the request body.
retry_options: Option<HttpRetryOptions>HTTP retry options for the request.
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 · 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 HttpOptions
impl Debug for HttpOptions
Source§impl Default for HttpOptions
impl Default for HttpOptions
Source§fn default() -> HttpOptions
fn default() -> HttpOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpOptions
impl<'de> Deserialize<'de> for HttpOptions
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 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