Struct openid_client::types::RequestResourceOptions
source · pub struct RequestResourceOptions {
pub method: Method,
pub headers: HeaderMap,
pub body: Option<String>,
pub bearer: bool,
pub expect_body_to_be_json: bool,
pub dpop: Option<Jwk>,
}Expand description
RequestResourceParams
Parameters for the request_resource_async method in Client
Fields§
§method: MethodRequest method
headers: HeaderMapHeader to send with the request
body: Option<String>Body of the request
bearer: boolSpecifies if the request should use bearer auth
expect_body_to_be_json: boolChecks if the body should be of type json
dpop: Option<Jwk>When provided the client will send a DPoP Proof JWT. The DPoP Proof JWT’s algorithm is determined automatically based on the type of key and the issuer metadata.
Trait Implementations§
source§impl Clone for RequestResourceOptions
impl Clone for RequestResourceOptions
source§fn clone(&self) -> RequestResourceOptions
fn clone(&self) -> RequestResourceOptions
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 Default for RequestResourceOptions
impl Default for RequestResourceOptions
source§fn default() -> RequestResourceOptions
fn default() -> RequestResourceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RequestResourceOptions
impl Send for RequestResourceOptions
impl Sync for RequestResourceOptions
impl Unpin for RequestResourceOptions
impl UnwindSafe for RequestResourceOptions
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