pub struct HealthStatusResponse {
pub status: Status,
pub checked_at: String,
pub database_healthy: bool,
pub workers_alive: i64,
}Expand description
HealthStatusResponse : Health status response (cached with 5s TTL)
Fields§
§status: StatusOverall health status
checked_at: StringTimestamp when the health check was actually performed (not cache return time)
database_healthy: boolWhether the database is reachable
workers_alive: i64Number of workers that pinged within last 5 minutes
Implementations§
Trait Implementations§
Source§impl Clone for HealthStatusResponse
impl Clone for HealthStatusResponse
Source§fn clone(&self) -> HealthStatusResponse
fn clone(&self) -> HealthStatusResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthStatusResponse
impl Debug for HealthStatusResponse
Source§impl Default for HealthStatusResponse
impl Default for HealthStatusResponse
Source§fn default() -> HealthStatusResponse
fn default() -> HealthStatusResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealthStatusResponse
impl<'de> Deserialize<'de> for HealthStatusResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HealthStatusResponse
impl PartialEq for HealthStatusResponse
Source§impl Serialize for HealthStatusResponse
impl Serialize for HealthStatusResponse
impl StructuralPartialEq for HealthStatusResponse
Auto Trait Implementations§
impl Freeze for HealthStatusResponse
impl RefUnwindSafe for HealthStatusResponse
impl Send for HealthStatusResponse
impl Sync for HealthStatusResponse
impl Unpin for HealthStatusResponse
impl UnwindSafe for HealthStatusResponse
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