pub struct HealthChecks {
pub database: Box<DatabaseHealth>,
pub workers: Option<Box<WorkersHealth>>,
pub queue: Option<Box<QueueHealth>>,
pub readiness: Box<ReadinessHealth>,
}Expand description
HealthChecks : Detailed health checks
Fields§
§database: Box<DatabaseHealth>§workers: Option<Box<WorkersHealth>>§queue: Option<Box<QueueHealth>>§readiness: Box<ReadinessHealth>Implementations§
Source§impl HealthChecks
impl HealthChecks
Sourcepub fn new(database: DatabaseHealth, readiness: ReadinessHealth) -> HealthChecks
pub fn new(database: DatabaseHealth, readiness: ReadinessHealth) -> HealthChecks
Detailed health checks
Trait Implementations§
Source§impl Clone for HealthChecks
impl Clone for HealthChecks
Source§fn clone(&self) -> HealthChecks
fn clone(&self) -> HealthChecks
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 HealthChecks
impl Debug for HealthChecks
Source§impl Default for HealthChecks
impl Default for HealthChecks
Source§fn default() -> HealthChecks
fn default() -> HealthChecks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealthChecks
impl<'de> Deserialize<'de> for HealthChecks
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 HealthChecks
impl PartialEq for HealthChecks
Source§impl Serialize for HealthChecks
impl Serialize for HealthChecks
impl StructuralPartialEq for HealthChecks
Auto Trait Implementations§
impl Freeze for HealthChecks
impl RefUnwindSafe for HealthChecks
impl Send for HealthChecks
impl Sync for HealthChecks
impl Unpin for HealthChecks
impl UnwindSafe for HealthChecks
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