pub struct ResponseParts {
pub status: u16,
pub headers: Headers,
pub body: String,
}Expand description
A response ready to be written to the wire.
Fields§
§status: u16HTTP status code.
headers: HeadersResponse headers.
body: StringEncoded body; empty for 204 and 304.
Implementations§
Trait Implementations§
Source§impl Clone for ResponseParts
impl Clone for ResponseParts
Source§impl Debug for ResponseParts
impl Debug for ResponseParts
impl Eq for ResponseParts
Source§impl PartialEq for ResponseParts
impl PartialEq for ResponseParts
impl StructuralPartialEq for ResponseParts
Auto Trait Implementations§
impl Freeze for ResponseParts
impl RefUnwindSafe for ResponseParts
impl Send for ResponseParts
impl Sync for ResponseParts
impl Unpin for ResponseParts
impl UnsafeUnpin for ResponseParts
impl UnwindSafe for ResponseParts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.