pub struct HiveTask {
pub hive_task_id: HiveTaskId,
pub objective: String,
pub agent_sessions: Vec<SessionId>,
pub current_generation: u32,
pub best_score: Option<f32>,
pub best_session_id: Option<SessionId>,
pub completed: bool,
}Expand description
Aggregate view of a hive collaborative task, built from events.
Fields§
§hive_task_id: HiveTaskId§objective: String§agent_sessions: Vec<SessionId>§current_generation: u32§best_score: Option<f32>§best_session_id: Option<SessionId>§completed: boolImplementations§
Source§impl HiveTask
impl HiveTask
Sourcepub fn from_events(events: &[EventEnvelope]) -> Option<Self>
pub fn from_events(events: &[EventEnvelope]) -> Option<Self>
Reconstruct a HiveTask aggregate from a sequence of events.
Scans for hive-related EventKind variants and builds the aggregate.
Returns None if no HiveTaskCreated event is found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HiveTask
impl RefUnwindSafe for HiveTask
impl Send for HiveTask
impl Sync for HiveTask
impl Unpin for HiveTask
impl UnsafeUnpin for HiveTask
impl UnwindSafe for HiveTask
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