Struct Parts

struct Parts { ... }

Component parts of an HTTP Response

The HTTP response head consists of a status, version, and a set of header fields.

Fields

status: crate::status::StatusCode

The response's status

version: crate::version::Version

The response's version

headers: crate::header::HeaderMap<crate::header::HeaderValue>

The response's headers

extensions: crate::Extensions

The response's extensions

Implementations

impl Clone for Parts

fn clone(self: &Self) -> Parts

impl Debug for Parts

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Freeze for Parts

impl RefUnwindSafe for Parts

impl Send for Parts

impl Sync for Parts

impl Unpin for Parts

impl UnwindSafe for Parts

impl<T> Any for Parts

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Parts

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Parts

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Parts

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Parts

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Parts

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Parts

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Parts

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Parts

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>