lattice_sdk/api/types/
allocation.rs

1pub use crate::prelude::*;
2
3/// Allocation contains a list of agents allocated to a Task.
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
5pub struct Allocation {
6    /// Agents actively being utilized in a Task.
7    #[serde(rename = "activeAgents")]
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub active_agents: Option<Vec<Agent>>,
10}