task-hookrs 0.9.0

Crate to work with taskwarrior exported JSON
Documentation
extern crate chrono;
extern crate serde_json;
extern crate task_hookrs;
extern crate uuid;

use task_hookrs::status::TaskStatus;
use task_hookrs::task::Task;
use task_hookrs::task::TW26;
use task_hookrs::uda::UDA;

use chrono::NaiveDateTime;
use serde_json::to_string;
use uuid::Uuid;

fn main() {
    let uuid = Uuid::nil();
    let date = NaiveDateTime::parse_from_str("2016-12-31 12:13:14", "%Y-%m-%d %H:%M:%S").unwrap();
    let t: Task<TW26> = Task::new(
        Some(12),
        TaskStatus::Pending,
        uuid,
        date.into(),
        "Test task".to_string(),
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        None,
        UDA::default(),
    );
    println!("[{}]", to_string(&t).unwrap());
}