pub struct SwarmTask {
pub id: Uuid,
pub description: String,
pub subtasks: Vec<SwarmSubtask>,
pub progress: f64,
pub created_at: DateTime<Utc>,
pub aggregated_result: Option<String>,
}Expand description
A complex task decomposed into subtasks for swarm execution.
Fields§
§id: UuidUnique identifier.
description: StringThe original task description.
subtasks: Vec<SwarmSubtask>Decomposed subtasks.
progress: f64Overall progress (0.0 to 1.0).
created_at: DateTime<Utc>When the swarm task was created.
aggregated_result: Option<String>Aggregated result, if all subtasks completed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwarmTask
impl<'de> Deserialize<'de> for SwarmTask
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 SwarmTask
impl RefUnwindSafe for SwarmTask
impl Send for SwarmTask
impl Sync for SwarmTask
impl Unpin for SwarmTask
impl UnsafeUnpin for SwarmTask
impl UnwindSafe for SwarmTask
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