pub struct NodeDetails {
pub id: u64,
pub address: String,
pub status: String,
pub role: String,
pub labels: HashMap<String, String>,
pub last_seen: u64,
pub resources: NodeResourceInfo,
pub services: Vec<String>,
pub registered_at: u64,
pub last_heartbeat: u64,
}Expand description
Detailed node information
Fields§
§id: u64Node identifier
address: StringNode network address
status: StringCurrent node status
role: StringNode role
labels: HashMap<String, String>Node labels for scheduling
last_seen: u64Last seen timestamp (Unix timestamp)
resources: NodeResourceInfoNode resource information
services: Vec<String>Services running on this node
registered_at: u64When the node was registered (Unix timestamp)
last_heartbeat: u64Last heartbeat timestamp (Unix timestamp)
Trait Implementations§
Source§impl ComposeSchema for NodeDetails
impl ComposeSchema for NodeDetails
Source§impl Debug for NodeDetails
impl Debug for NodeDetails
Source§impl<'de> Deserialize<'de> for NodeDetails
impl<'de> Deserialize<'de> for NodeDetails
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 NodeDetails
impl Serialize for NodeDetails
Auto Trait Implementations§
impl Freeze for NodeDetails
impl RefUnwindSafe for NodeDetails
impl Send for NodeDetails
impl Sync for NodeDetails
impl Unpin for NodeDetails
impl UnsafeUnpin for NodeDetails
impl UnwindSafe for NodeDetails
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