pub struct RequestResourceOptions<'a> {
pub method: HttpMethod,
pub headers: HashMap<String, Vec<String>>,
pub body: Option<String>,
pub bearer: bool,
pub expect_body_to_be_json: bool,
pub dpop: Option<&'a Jwk>,
}
Expand description
§RequestResourceParams
Parameters for the request_resource_async
method in Client
Fields§
§method: HttpMethod
Request method
headers: HashMap<String, Vec<String>>
Header to send with the request
body: Option<String>
Body of the request
bearer: bool
Specifies if the request should use bearer auth
expect_body_to_be_json: bool
Checks if the body should be of type json
dpop: Option<&'a Jwk>
When provided the client will send a DPoP Proof JWT.
Trait Implementations§
Source§impl<'a> Clone for RequestResourceOptions<'a>
impl<'a> Clone for RequestResourceOptions<'a>
Source§fn clone(&self) -> RequestResourceOptions<'a>
fn clone(&self) -> RequestResourceOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Default for RequestResourceOptions<'a>
impl<'a> Default for RequestResourceOptions<'a>
Source§fn default() -> RequestResourceOptions<'a>
fn default() -> RequestResourceOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RequestResourceOptions<'a>
impl<'a> RefUnwindSafe for RequestResourceOptions<'a>
impl<'a> Send for RequestResourceOptions<'a>
impl<'a> Sync for RequestResourceOptions<'a>
impl<'a> Unpin for RequestResourceOptions<'a>
impl<'a> UnwindSafe for RequestResourceOptions<'a>
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