pub struct TaskEntry {
pub id: TaskId,
pub label: String,
pub fraction: Option<f32>,
pub note: Option<String>,
pub outcome: Option<TaskOutcome>,
}Expand description
One task as the application shows it.
Fields§
§id: TaskIdThe task.
label: StringIts label.
fraction: Option<f32>Completed share from 0 to 1, when the task reports one.
note: Option<String>The latest note.
outcome: Option<TaskOutcome>How it ended; None while running.
Trait Implementations§
impl StructuralPartialEq for TaskEntry
Auto Trait Implementations§
impl Freeze for TaskEntry
impl RefUnwindSafe for TaskEntry
impl Send for TaskEntry
impl Sync for TaskEntry
impl Unpin for TaskEntry
impl UnsafeUnpin for TaskEntry
impl UnwindSafe for TaskEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more