pub struct WireResponse<B = HttpBody> {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: B,
}Expand description
An HTTP response with three elements, independent of the body representation.
Fields§
§status: StatusCode§headers: HeaderMap§body: BTrait Implementations§
Source§impl<B: Debug> Debug for WireResponse<B>
impl<B: Debug> Debug for WireResponse<B>
Source§impl<B: DeclaredFields> DeclaredFields for WireResponse<B>
impl<B: DeclaredFields> DeclaredFields for WireResponse<B>
fn into_declared(self) -> Self
Auto Trait Implementations§
impl<B> Freeze for WireResponse<B>where
B: Freeze,
impl<B> RefUnwindSafe for WireResponse<B>where
B: RefUnwindSafe,
impl<B> Send for WireResponse<B>where
B: Send,
impl<B> Sync for WireResponse<B>where
B: Sync,
impl<B> Unpin for WireResponse<B>where
B: Unpin,
impl<B> UnsafeUnpin for WireResponse<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for WireResponse<B>where
B: UnwindSafe,
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