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
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