pub struct Troop {
pub id: TroopId,
pub name: String,
pub leader: FighterId,
pub members: Vec<FighterId>,
pub strategy: CoordinationStrategy,
pub status: TroopStatus,
pub created_at: DateTime<Utc>,
}Expand description
A named group of coordinated agents.
Fields§
§id: TroopIdUnique identifier for this troop.
name: StringHuman-readable name for this troop.
leader: FighterIdThe leader fighter who coordinates the troop.
members: Vec<FighterId>All member fighters (including the leader).
strategy: CoordinationStrategyHow tasks are distributed among members.
status: TroopStatusCurrent operational status.
created_at: DateTime<Utc>When the troop was formed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Troop
impl<'de> Deserialize<'de> for Troop
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 Troop
impl RefUnwindSafe for Troop
impl Send for Troop
impl Sync for Troop
impl Unpin for Troop
impl UnsafeUnpin for Troop
impl UnwindSafe for Troop
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