Struct taskboard_core_lib::Task [−][src]
pub struct Task {
pub number: usize,
pub title: String,
pub status: Status,
pub remaining_work: Option<u8>,
}
Expand description
A task represents a single job. Usage example:
use taskboard_core_lib::Task;
let task_1 = Task::new(1, "Learn rust");
let task_2 = Task::new(2, "Learn K8S");
assert_ne!(task_1, task_2);
Fields
number: usize
A number used for identifying tasks within a project
title: String
The task’s title
status: Status
The task’s current status
remaining_work: Option<u8>
Remaning work in number of hours, or None if not specified
Implementations
Trait Implementations
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 RefUnwindSafe for Task
impl UnwindSafe for Task
Blanket Implementations
Mutably borrows from an owned value. Read more