pub struct SwarmSubtask {
pub id: Uuid,
pub description: String,
pub assigned_to: Option<FighterId>,
pub status: SubtaskStatus,
pub result: Option<String>,
pub depends_on: Vec<Uuid>,
}Expand description
A subtask within a larger swarm task.
Fields§
§id: UuidUnique identifier for this subtask.
description: StringDescription of what this subtask should accomplish.
assigned_to: Option<FighterId>The fighter assigned to this subtask, if any.
status: SubtaskStatusCurrent status.
result: Option<String>Result content, if completed.
depends_on: Vec<Uuid>Dependencies: IDs of subtasks that must complete first.
Trait Implementations§
Source§impl Clone for SwarmSubtask
impl Clone for SwarmSubtask
Source§fn clone(&self) -> SwarmSubtask
fn clone(&self) -> SwarmSubtask
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwarmSubtask
impl Debug for SwarmSubtask
Source§impl<'de> Deserialize<'de> for SwarmSubtask
impl<'de> Deserialize<'de> for SwarmSubtask
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 SwarmSubtask
impl RefUnwindSafe for SwarmSubtask
impl Send for SwarmSubtask
impl Sync for SwarmSubtask
impl Unpin for SwarmSubtask
impl UnsafeUnpin for SwarmSubtask
impl UnwindSafe for SwarmSubtask
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