pub struct Response {
pub headers: Vec<(&'static str, String)>,
pub status_code: u16,
}
Expand description
The response, that the user of the API is expected to transform into a HTTP response to the client
Fields§
§headers: Vec<(&'static str, String)>
§status_code: u16
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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