extern crate task_hookrs;
extern crate chrono;
extern crate serde_json;
extern crate uuid;

use task_hookrs::task::Task;
use task_hookrs::status::TaskStatus;

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::new(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,);
    println!("[{}]", to_string(&t).unwrap());
}

Add example how to create a task from Rust
Add example how to create a task from Rust
