pub struct Vendor {
pub base_url: Option<String>,
pub hosts: Option<String>,
pub private: Option<bool>,
pub connect_timeout_ms: Option<u64>,
pub timeout_ms: Option<u64>,
pub max_response_bytes: Option<u64>,
pub retries: Option<u32>,
pub redirects: Option<u32>,
}Expand description
Keys <MODULE>_<VENDOR>_*; all but BASE_URL have defaults, and only HTTP vendors need it.
Fields§
§base_url: Option<String>§hosts: Option<String>§private: Option<bool>Allows private and loopback addresses and plain HTTP; link-local and metadata stay refused.
connect_timeout_ms: Option<u64>§timeout_ms: Option<u64>§max_response_bytes: Option<u64>§retries: Option<u32>§redirects: Option<u32>Trait Implementations§
Auto Trait Implementations§
impl Forget for Vendor
impl Freeze for Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnsafeUnpin for Vendor
impl UnwindSafe for Vendor
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