pub struct RequestArgs {
pub url: String,
pub body: Option<Bytes>,
pub retries: u32,
pub headers: Option<HashMap<String, String>>,
pub query_params: Option<HashMap<String, String>>,
pub accept_gzip_response: bool,
pub timeout_ms: u64,
pub is_shutdown: Option<Arc<AtomicBool>>,
}
Fields§
§url: String
§body: Option<Bytes>
§retries: u32
§headers: Option<HashMap<String, String>>
§query_params: Option<HashMap<String, String>>
§accept_gzip_response: bool
§timeout_ms: u64
§is_shutdown: Option<Arc<AtomicBool>>
Implementations§
Source§impl RequestArgs
impl RequestArgs
Trait Implementations§
Source§impl Clone for RequestArgs
impl Clone for RequestArgs
Source§fn clone(&self) -> RequestArgs
fn clone(&self) -> RequestArgs
Returns a copy 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 moreAuto Trait Implementations§
impl !Freeze for RequestArgs
impl RefUnwindSafe for RequestArgs
impl Send for RequestArgs
impl Sync for RequestArgs
impl Unpin for RequestArgs
impl UnwindSafe for RequestArgs
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