pub struct NetProviderRequestArgs {
pub url: String,
pub body: Option<Vec<u8>>,
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>>,
pub diagnostics_key: Option<KeyType>,
}
Fields§
§url: String
§body: Option<Vec<u8>>
§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>>
§diagnostics_key: Option<KeyType>
Implementations§
Source§impl NetProviderRequestArgs
impl NetProviderRequestArgs
pub fn get_fully_qualified_url(&self) -> String
Trait Implementations§
Source§impl Clone for NetProviderRequestArgs
impl Clone for NetProviderRequestArgs
Source§fn clone(&self) -> NetProviderRequestArgs
fn clone(&self) -> NetProviderRequestArgs
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 moreSource§impl<T, D> From<RequestArgsTyped<T, D>> for NetProviderRequestArgs
impl<T, D> From<RequestArgsTyped<T, D>> for NetProviderRequestArgs
Source§fn from(val: RequestArgsTyped<T, D>) -> Self
fn from(val: RequestArgsTyped<T, D>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetProviderRequestArgs
impl RefUnwindSafe for NetProviderRequestArgs
impl Send for NetProviderRequestArgs
impl Sync for NetProviderRequestArgs
impl Unpin for NetProviderRequestArgs
impl UnwindSafe for NetProviderRequestArgs
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