pub struct HttpConfig {
pub request_timeout_secs: u64,
pub connect_timeout_secs: u64,
pub base_url: String,
pub user_agent: String,
}
Expand description
HTTP client configuration settings.
Fields§
§request_timeout_secs: u64
Request timeout in seconds (default: 30)
connect_timeout_secs: u64
Connection timeout in seconds (default: 10)
base_url: String
Base URL for WeChat API (default: “https://api.weixin.qq.com”)
user_agent: String
User agent string for requests
Implementations§
Source§impl HttpConfig
impl HttpConfig
Sourcepub fn builder() -> HttpConfigBuilder
pub fn builder() -> HttpConfigBuilder
Creates a new HTTP config builder.
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
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§impl<'de> Deserialize<'de> for HttpConfig
impl<'de> Deserialize<'de> for HttpConfig
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 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