pub struct ObservatoryHttpView {
pub status: u16,
pub content_type: &'static str,
pub cache_control: &'static str,
pub content_security_policy: &'static str,
pub body: Vec<u8>,
}Expand description
Framework-neutral HTTP adapter output; the downstream application owns routing and serving.
Fields§
§status: u16§content_type: &'static str§cache_control: &'static str§content_security_policy: &'static str§body: Vec<u8>Auto Trait Implementations§
impl Freeze for ObservatoryHttpView
impl RefUnwindSafe for ObservatoryHttpView
impl Send for ObservatoryHttpView
impl Sync for ObservatoryHttpView
impl Unpin for ObservatoryHttpView
impl UnsafeUnpin for ObservatoryHttpView
impl UnwindSafe for ObservatoryHttpView
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