pub struct Task {
pub id: String,
pub priority: TaskPriority,
pub estimated_duration: Option<Duration>,
pub dependencies: Vec<String>,
pub payload: TaskPayload,
pub created_at: Instant,
}Expand description
Enhanced task structure with priority and dependency support
Fields§
§id: String§priority: TaskPriority§estimated_duration: Option<Duration>§dependencies: Vec<String>§payload: TaskPayload§created_at: InstantTrait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)