pub struct Reply {
pub status: u16,
pub content_type: &'static str,
pub cache_control: &'static str,
pub body: Vec<u8>,
}Expand description
One answer: a status, a content type, headers that matter, and the bytes.
Fields§
§status: u16§content_type: &'static str§cache_control: &'static strCache-Control. Named rather than implied: the page and the JSON must
NOT be cached (a stale release table is a lie about what is published)
and the picture must be, because it is 300 kB that never changes
without a redeploy.
body: Vec<u8>Trait Implementations§
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Freeze for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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