pub enum ServeResponse {
Html(String),
Json(Value),
}Expand description
The response from serve_request.
Variants§
Html(String)
Full HTML page for initial load or browser refresh.
Json(Value)
JSON partial for client-side navigation via webui-router.
Auto Trait Implementations§
impl Freeze for ServeResponse
impl RefUnwindSafe for ServeResponse
impl Send for ServeResponse
impl Sync for ServeResponse
impl Unpin for ServeResponse
impl UnsafeUnpin for ServeResponse
impl UnwindSafe for ServeResponse
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