pub struct RequestConfig {
pub client: Client,
pub host: Arc<String>,
pub method: HttpMethod,
pub body: Arc<Option<Body>>,
pub tracked_fields: Option<Arc<Vec<TrackedField>>>,
pub headers: Arc<Vec<(String, SensitiveString)>>,
}Fields§
§client: Client§host: Arc<String>§method: HttpMethod§body: Arc<Option<Body>>§tracked_fields: Option<Arc<Vec<TrackedField>>>§headers: Arc<Vec<(String, SensitiveString)>>Static headers applied to every request in the run.
Stored as Arc so the list is shared cheaply across concurrent tasks.
Values are SensitiveString so secrets are redacted in debug output.
Implementations§
Source§impl RequestConfig
impl RequestConfig
Auto Trait Implementations§
impl Freeze for RequestConfig
impl !RefUnwindSafe for RequestConfig
impl Send for RequestConfig
impl Sync for RequestConfig
impl Unpin for RequestConfig
impl UnsafeUnpin for RequestConfig
impl !UnwindSafe for RequestConfig
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