Struct openid_client::RequestOptions
source · pub struct RequestOptions {
pub headers: HeaderMap,
pub timeout: Duration,
}Expand description
RequestOptions
This struct is the return type of the request interceptor that can be passed to various methods such as:
- [
Issuer::webfinger_with_interceptor_async()] - [
Issuer::webfinger_with_interceptor()] - [
Issuer::discover_with_interceptor_async()] - [
Issuer::discover_with_interceptor()]
Fields§
§headers: HeaderMapHeaders that are tobe appended with the request that is going to be made
timeout: DurationRequest timeout
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnwindSafe for RequestOptions
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