Struct Parts
struct Parts { ... }
Component parts of an HTTP Request
The HTTP request head consists of a method, uri, version, and a set of header fields.
Fields
method: crate::method::MethodThe request's method
uri: crate::UriThe request's URI
version: crate::version::VersionThe request's version
headers: crate::header::HeaderMap<crate::header::HeaderValue>The request's headers
extensions: crate::ExtensionsThe request'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) -> TReturns the argument unchanged.
impl<T> ToOwned for Parts
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Parts
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>