pub struct health;Expand description
Handles the health endpoint, returning a JSON response indicating the server is healthy.
§Returns
Returns an HttpResponse with a status of 200 (OK), content type “application/json”,
and a JSON body containing the string “Healthy”.
Trait Implementations§
Source§impl HttpServiceFactory for health
impl HttpServiceFactory for health
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for health
impl RefUnwindSafe for health
impl Send for health
impl Sync for health
impl Unpin for health
impl UnwindSafe for health
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