pub struct HttpOptions {
pub timeout: Option<u64>,
pub proxy: Option<String>,
pub headers: HashMap<String, String>,
pub base_url: Option<String>,
pub api_version: Option<String>,
}Expand description
HTTP 配置。
Fields§
§timeout: Option<u64>§proxy: Option<String>§headers: HashMap<String, String>§base_url: Option<String>§api_version: Option<String>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
Auto Trait Implementations§
impl Freeze for HttpOptions
impl RefUnwindSafe for HttpOptions
impl Send for HttpOptions
impl Sync for HttpOptions
impl Unpin 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