pub struct TaskItem {
pub name: String,
pub state: TaskState,
pub detail: Option<String>,
pub error: Option<String>,
}Expand description
A single task in the list.
Fields§
§name: StringTask name/description.
state: TaskStateCurrent state.
detail: Option<String>Optional detail text (shown on next line when completed).
error: Option<String>Optional error message (for failures).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskItem
impl RefUnwindSafe for TaskItem
impl Send for TaskItem
impl Sync for TaskItem
impl Unpin for TaskItem
impl UnwindSafe for TaskItem
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