pub struct Parts {
pub status: StatusCode,
pub version: Version,
pub headers: HeaderMap,
pub extensions: Extensions,
/* private fields */
}Expand description
Component parts of an HTTP Response
The HTTP response head consists of a status, version, and a set of header fields.
Fields§
§status: StatusCodeThe response’s status
version: VersionThe response’s version
headers: HeaderMapThe response’s headers
extensions: ExtensionsThe response’s extensions
Trait Implementations§
Source§impl From<Parts> for ResponseWrapper
impl From<Parts> for ResponseWrapper
Source§fn from(parts: Parts) -> ResponseWrapper
fn from(parts: Parts) -> ResponseWrapper
Converts to this type from the input type.
Source§impl IntoResponse for Parts
impl IntoResponse for Parts
Source§fn into_response(self) -> Response<UnsyncBoxBody<Bytes, Error>>
fn into_response(self) -> Response<UnsyncBoxBody<Bytes, Error>>
Create a response.
Auto Trait Implementations§
impl Freeze for Parts
impl !RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl !UnwindSafe for Parts
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