pub struct Response(/* private fields */);Implementations§
Source§impl Response
impl Response
pub fn status(&self) -> StatusCode
pub fn headers(&self) -> &HeaderMap
pub async fn bytes(self) -> Result<Bytes, Error>
pub async fn text(self) -> Result<String, Error>
pub async fn json<T: DeserializeOwned>(self) -> Result<T, Error>
pub fn into_inner(self) -> HyperResponse<Incoming>
Auto Trait Implementations§
impl !RefUnwindSafe for Response
impl !UnwindSafe for Response
impl Freeze for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin 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