pub struct NodeSummary {
pub id: u64,
pub address: String,
pub status: String,
pub role: String,
pub labels: HashMap<String, String>,
pub last_seen: u64,
}Expand description
Node summary for list operations
Fields§
§id: u64Node identifier
address: StringNode network address
status: StringCurrent node status (e.g., “ready”, “notready”, “disconnected”)
role: StringNode role (e.g., “leader”, “worker”)
labels: HashMap<String, String>Node labels for scheduling
last_seen: u64Last seen timestamp (Unix timestamp)
Trait Implementations§
Source§impl ComposeSchema for NodeSummary
impl ComposeSchema for NodeSummary
Source§impl Debug for NodeSummary
impl Debug for NodeSummary
Source§impl<'de> Deserialize<'de> for NodeSummary
impl<'de> Deserialize<'de> for NodeSummary
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 NodeSummary
impl Serialize for NodeSummary
Auto Trait Implementations§
impl Freeze for NodeSummary
impl RefUnwindSafe for NodeSummary
impl Send for NodeSummary
impl Sync for NodeSummary
impl Unpin for NodeSummary
impl UnsafeUnpin for NodeSummary
impl UnwindSafe for NodeSummary
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