pub struct ReplySpec {
pub status: u16,
pub headers: Map<String, Value>,
pub body: BodySpec,
}Expand description
Specification for an HTTP reply: status, headers, body.
Uses yttp {s: h: b:} convention.
Fields§
§status: u16HTTP status code (default 200).
headers: Map<String, Value>Response headers (after shortcut expansion).
body: BodySpecBody specification.
Trait Implementations§
impl StructuralPartialEq for ReplySpec
Auto Trait Implementations§
impl Freeze for ReplySpec
impl RefUnwindSafe for ReplySpec
impl Send for ReplySpec
impl Sync for ReplySpec
impl Unpin for ReplySpec
impl UnsafeUnpin for ReplySpec
impl UnwindSafe for ReplySpec
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