pub struct ServerHealth {
pub ID: Option<String>,
pub name: Option<String>,
pub address: Option<String>,
pub serf_status: Option<String>,
pub version: Option<String>,
pub leader: Option<bool>,
pub last_contact: Option<i64>,
pub last_term: Option<i32>,
pub last_index: Option<i32>,
pub healthy: Option<bool>,
pub voter: Option<bool>,
pub stable_since: Option<String>,
}
Fields§
§ID: Option<String>
§name: Option<String>
§address: Option<String>
§serf_status: Option<String>
§version: Option<String>
§leader: Option<bool>
§last_contact: Option<i64>
§last_term: Option<i32>
§last_index: Option<i32>
§healthy: Option<bool>
§voter: Option<bool>
§stable_since: Option<String>
Implementations§
Source§impl ServerHealth
impl ServerHealth
pub fn new() -> ServerHealth
Trait Implementations§
Source§impl Clone for ServerHealth
impl Clone for ServerHealth
Source§fn clone(&self) -> ServerHealth
fn clone(&self) -> ServerHealth
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 ServerHealth
impl Debug for ServerHealth
Source§impl<'de> Deserialize<'de> for ServerHealth
impl<'de> Deserialize<'de> for ServerHealth
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 ServerHealth
impl PartialEq for ServerHealth
Source§impl Serialize for ServerHealth
impl Serialize for ServerHealth
impl StructuralPartialEq for ServerHealth
Auto Trait Implementations§
impl Freeze for ServerHealth
impl RefUnwindSafe for ServerHealth
impl Send for ServerHealth
impl Sync for ServerHealth
impl Unpin for ServerHealth
impl UnwindSafe for ServerHealth
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