Struct openid_client::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 fn from(response: Response) -> Self
pub fn from(response: Response) -> Self
Creates a new instance of Response from reqwest::blocking::Response
sourcepub async fn from_async(response: Response) -> Self
pub async fn from_async(response: Response) -> Self
Creates a new instance of Response from reqwest::Response