Struct tide_disco::app::AppHealth
source · pub struct AppHealth {
pub status: HealthStatus,
pub modules: BTreeMap<String, BTreeMap<u64, StatusCode>>,
}Expand description
The health status of an application.
Fields§
§status: HealthStatusThe status of the overall application.
HealthStatus::Available if all of the application’s modules are healthy, otherwise a HealthStatus variant with status other than 200.
modules: BTreeMap<String, BTreeMap<u64, StatusCode>>The status of each registered module, indexed by version.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AppHealth
impl<'de> Deserialize<'de> for AppHealth
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 HealthCheck for AppHealth
impl HealthCheck for AppHealth
source§fn status(&self) -> StatusCode
fn status(&self) -> StatusCode
The status of this health check. Read more
source§impl PartialEq for AppHealth
impl PartialEq for AppHealth
impl Eq for AppHealth
impl StructuralPartialEq for AppHealth
Auto Trait Implementations§
impl Freeze for AppHealth
impl RefUnwindSafe for AppHealth
impl Send for AppHealth
impl Sync for AppHealth
impl Unpin for AppHealth
impl UnwindSafe for AppHealth
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.