pub struct AwcConfig {
pub timeout: Duration,
pub base_url: String,
pub user_agent: String,
}Expand description
Configuration for AwcClient.
Fields§
§timeout: DurationTotal per-request deadline. A hung upstream must never stall a gather indefinitely.
base_url: StringBase URL the per-product paths are joined onto. Point this at a mock server in tests.
user_agent: StringUser-Agent to send. AWC filters traffic with default agents, so
identify your application here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AwcConfig
impl RefUnwindSafe for AwcConfig
impl Send for AwcConfig
impl Sync for AwcConfig
impl Unpin for AwcConfig
impl UnsafeUnpin for AwcConfig
impl UnwindSafe for AwcConfig
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