Struct openid_client::types::Response
source · pub struct Response {
pub body: Option<String>,
pub status: StatusCode,
pub headers: HeaderMap,
}Expand description
Fields§
§body: Option<String>Body from the response
status: StatusCodeStatus code of the response
headers: HeaderMapResponse headers from the server
Implementations§
source§impl Response
impl Response
sourcepub async fn try_get_body_as_hash_map(&self) -> Option<HashMap<String, Value>>
pub async fn try_get_body_as_hash_map(&self) -> Option<HashMap<String, Value>>
Tries and converts the body (if present) to a HashMap<String, Value>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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