pub struct HealthResponse {
pub version: String,
pub pid: u32,
pub uptime_secs: u64,
pub config_error: Option<String>,
}Expand description
Response of GET /health.
Fields§
§version: StringDaemon version, from its Cargo.toml.
pid: u32Daemon process ID.
uptime_secs: u64Seconds since the daemon started.
config_error: Option<String>Why the last change to config.toml was rejected; the daemon keeps the config it had
until the file is fixed.
Trait Implementations§
Source§impl Clone for HealthResponse
impl Clone for HealthResponse
Source§impl Debug for HealthResponse
impl Debug for HealthResponse
Source§impl<'de> Deserialize<'de> for HealthResponse
impl<'de> Deserialize<'de> for HealthResponse
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
impl Eq for HealthResponse
Source§impl PartialEq for HealthResponse
impl PartialEq for HealthResponse
Source§impl Serialize for HealthResponse
impl Serialize for HealthResponse
impl StructuralPartialEq for HealthResponse
Auto Trait Implementations§
impl Forget for HealthResponse
impl Freeze for HealthResponse
impl Move for HealthResponse
impl RefUnwindSafe for HealthResponse
impl Send for HealthResponse
impl Sync for HealthResponse
impl Unpin for HealthResponse
impl UnsafeUnpin for HealthResponse
impl UnwindSafe for HealthResponse
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