pub struct Http {
pub proxy: Option<CompactString>,
pub timeout: Option<u64>,
pub cainfo: Option<PathBuf>,
}
Fields§
§proxy: Option<CompactString>
HTTP proxy in libcurl format: “host:port”
env: CARGO_HTTP_PROXY or HTTPS_PROXY or https_proxy or http_proxy
timeout: Option<u64>
timeout for each HTTP request, in seconds
env: CARGO_HTTP_TIMEOUT or HTTP_TIMEOUT
cainfo: Option<PathBuf>
path to Certificate Authority (CA) bundle
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Http
impl<'de> Deserialize<'de> for Http
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 Http
impl RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl UnwindSafe for Http
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