pub struct HttpResponse {
pub status_code: StatusCode,
pub headers: Vec<(String, String)>,
pub body: String,
}
Fields§
§status_code: StatusCode
§headers: Vec<(String, String)>
§body: String
Trait Implementations§
Source§impl Debug for HttpResponse
impl Debug for HttpResponse
Source§impl PartialEq for HttpResponse
impl PartialEq for HttpResponse
Source§impl ToString for HttpResponse
impl ToString for HttpResponse
impl StructuralPartialEq for HttpResponse
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