Struct senile::types::ToDoItem[][src]

pub struct ToDoItem {
    pub priority: String,
    pub body: String,
    pub assignee: String,
    pub context: Vec<String>,
    pub file: String,
    pub line: u32,
}

The typed todo item.

Fields

priority: String

The free-text priority. Can be something like [‘min’, ‘max’, ‘0’, ‘1’] or whatever.

body: String

Main body of the item. This is intended to contain the majority of the free text.

assignee: String

Who this todo belongs to.

context: Vec<String>

Some context for the item (lines below it’s declaration).

file: String

The (relative) file path where it has been collected.

line: u32

Line in the file at which the declaration stood.

Trait Implementations

impl Debug for ToDoItem[src]

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

impl Serialize for ToDoItem[src]

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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.