pub struct WorkerSummary {
pub id: u64,
pub api_addr: String,
pub labels: HashMap<String, String>,
pub os: String,
pub last_seen_unix_secs: i64,
pub state: String,
}Expand description
Summary of a worker-tier worker node, returned by GET /api/v1/cluster/workers.
Fields§
§id: u64Worker’s assigned node id.
api_addr: StringWorker’s API/health address (host:port).
labels: HashMap<String, String>Labels declared during Register.
os: StringWorker’s reported OS.
last_seen_unix_secs: i64Last time the leader observed the worker.
state: StringLiveness state (ready | unreachable | draining).
Trait Implementations§
Source§impl Clone for WorkerSummary
impl Clone for WorkerSummary
Source§fn clone(&self) -> WorkerSummary
fn clone(&self) -> WorkerSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for WorkerSummary
impl ComposeSchema for WorkerSummary
Source§impl Debug for WorkerSummary
impl Debug for WorkerSummary
Source§impl<'de> Deserialize<'de> for WorkerSummary
impl<'de> Deserialize<'de> for WorkerSummary
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 Serialize for WorkerSummary
impl Serialize for WorkerSummary
Auto Trait Implementations§
impl Freeze for WorkerSummary
impl RefUnwindSafe for WorkerSummary
impl Send for WorkerSummary
impl Sync for WorkerSummary
impl Unpin for WorkerSummary
impl UnsafeUnpin for WorkerSummary
impl UnwindSafe for WorkerSummary
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