pub struct AgentHealth {
pub ok: bool,
pub message: String,
}
Expand description
AgentHealth describes the Client or Server’s health in a Health request.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§ok: bool
Ok is false if the agent is unhealthy
message: String
Message describes why the agent is unhealthy
Implementations§
Source§impl AgentHealth
impl AgentHealth
pub fn builder() -> AgentHealthBuilder
Trait Implementations§
Source§impl Clone for AgentHealth
impl Clone for AgentHealth
Source§fn clone(&self) -> AgentHealth
fn clone(&self) -> AgentHealth
Returns a copy 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 AgentHealth
impl Debug for AgentHealth
Source§impl Default for AgentHealth
impl Default for AgentHealth
Source§fn default() -> AgentHealth
fn default() -> AgentHealth
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentHealth
impl<'de> Deserialize<'de> for AgentHealth
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 AgentHealth
impl PartialEq for AgentHealth
Source§impl Serialize for AgentHealth
impl Serialize for AgentHealth
impl StructuralPartialEq for AgentHealth
Auto Trait Implementations§
impl Freeze for AgentHealth
impl RefUnwindSafe for AgentHealth
impl Send for AgentHealth
impl Sync for AgentHealth
impl Unpin for AgentHealth
impl UnwindSafe for AgentHealth
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