pub struct DatabaseHealth {
pub healthy: bool,
pub latency_ms: i64,
pub pool: Box<PoolStats>,
}Expand description
DatabaseHealth : Database health status
Fields§
§healthy: boolWhether the database is reachable
latency_ms: i64Database query latency in milliseconds
pool: Box<PoolStats>Implementations§
Trait Implementations§
Source§impl Clone for DatabaseHealth
impl Clone for DatabaseHealth
Source§fn clone(&self) -> DatabaseHealth
fn clone(&self) -> DatabaseHealth
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 DatabaseHealth
impl Debug for DatabaseHealth
Source§impl Default for DatabaseHealth
impl Default for DatabaseHealth
Source§fn default() -> DatabaseHealth
fn default() -> DatabaseHealth
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseHealth
impl<'de> Deserialize<'de> for DatabaseHealth
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 DatabaseHealth
impl PartialEq for DatabaseHealth
Source§impl Serialize for DatabaseHealth
impl Serialize for DatabaseHealth
impl StructuralPartialEq for DatabaseHealth
Auto Trait Implementations§
impl Freeze for DatabaseHealth
impl RefUnwindSafe for DatabaseHealth
impl Send for DatabaseHealth
impl Sync for DatabaseHealth
impl Unpin for DatabaseHealth
impl UnwindSafe for DatabaseHealth
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