[][src]Struct taskboard_core_lib::Task

pub struct Task {
    pub number: usize,
    pub title: String,
    pub status: Status,
    pub remaining_work: Option<u8>,
}

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

impl Task[src]

pub fn new(number: usize, title: &str) -> Self[src]

Creates a new Task with status Todo

Trait Implementations

impl Clone for Task[src]

impl Debug for Task[src]

impl<'de> Deserialize<'de> for Task[src]

impl PartialEq<Task> for Task[src]

impl Serialize for Task[src]

impl StructuralPartialEq for Task[src]

Auto Trait Implementations

impl RefUnwindSafe for Task

impl Send for Task

impl Sync for Task

impl Unpin for Task

impl UnwindSafe for Task

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,