pub struct HttpResponse {
pub content_type: String,
pub body: Option<Body>,
pub status_code: u16,
pub headers: Vec<(String, String)>,
}
Fields§
§content_type: String
§body: Option<Body>
§status_code: u16
§headers: Vec<(String, String)>
Implementations§
Source§impl HttpResponse
impl HttpResponse
Trait Implementations§
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