pub struct Health {
pub status: String,
pub db: String,
pub nats: String,
pub version: Option<String>,
pub ts: Option<i64>,
}Expand description
GET /api/health (../core/src/status.ts). Values are kept as strings so a new state
never breaks parsing.
Fields§
§status: Stringok or degraded.
db: Stringup or down.
nats: Stringup or down.
version: Option<String>Core version, e.g. 0.4.0.
ts: Option<i64>Core’s clock when it answered, Unix seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
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
Auto Trait Implementations§
impl Freeze for Health
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnsafeUnpin 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