pub struct ResponseParts<B> {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: B,
}Fields§
§status: StatusCode§headers: HeaderMap§body: BTrait Implementations§
Source§impl<B: Clone> Clone for ResponseParts<B>
impl<B: Clone> Clone for ResponseParts<B>
Source§fn clone(&self) -> ResponseParts<B>
fn clone(&self) -> ResponseParts<B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<B: Debug> Debug for ResponseParts<B>
impl<B: Debug> Debug for ResponseParts<B>
impl<B: Eq> Eq for ResponseParts<B>
Source§impl<B: PartialEq> PartialEq for ResponseParts<B>
impl<B: PartialEq> PartialEq for ResponseParts<B>
Source§fn eq(&self, other: &ResponseParts<B>) -> bool
fn eq(&self, other: &ResponseParts<B>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<B> StructuralPartialEq for ResponseParts<B>
Auto Trait Implementations§
impl<B> Freeze for ResponseParts<B>where
B: Freeze,
impl<B> RefUnwindSafe for ResponseParts<B>where
B: RefUnwindSafe,
impl<B> Send for ResponseParts<B>where
B: Send,
impl<B> Sync for ResponseParts<B>where
B: Sync,
impl<B> Unpin for ResponseParts<B>where
B: Unpin,
impl<B> UnsafeUnpin for ResponseParts<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for ResponseParts<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