pub struct HttpResponse { /* private fields */ }
Implementations§
Source§impl HttpResponse
impl HttpResponse
pub fn code<T>(self, value: T) -> Self
pub fn content_type<T>(self, value: T) -> Self
pub fn http_headers<T>(self, value: T) -> Self
pub fn latency<T>(self, value: T) -> Self
pub fn length<T>(self, value: T) -> Self
pub fn message<T>(self, value: T) -> Self
pub fn status<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Source§fn clone(&self) -> HttpResponse
fn clone(&self) -> HttpResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HttpResponse
impl Debug for HttpResponse
Source§impl Default for HttpResponse
impl Default for HttpResponse
Source§impl From<HttpResponse> for HttpResponse
impl From<HttpResponse> for HttpResponse
Source§fn from(value: HttpResponse) -> Self
fn from(value: HttpResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<HttpResponse> for HttpResponse
impl TryFrom<HttpResponse> for HttpResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: HttpResponse) -> Result<Self, ConversionError>
fn try_from(value: HttpResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnwindSafe for HttpResponse
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