pub struct AgentNode {
pub id: String,
pub capabilities: Vec<String>,
pub load: f64,
}Expand description
An agent (node) in the fleet graph.
Fields§
§id: String§capabilities: Vec<String>§load: f64Current load in [0, 1]. 0 = idle, 1 = fully loaded.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentNode
impl<'de> Deserialize<'de> for AgentNode
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
Auto Trait Implementations§
impl Freeze for AgentNode
impl RefUnwindSafe for AgentNode
impl Send for AgentNode
impl Sync for AgentNode
impl Unpin for AgentNode
impl UnsafeUnpin for AgentNode
impl UnwindSafe for AgentNode
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