diff options
author | mario <mario-krehl@gmx.de> | 2016-05-04 15:00:48 +0200 |
---|---|---|
committer | mario <mario-krehl@gmx.de> | 2016-05-04 15:00:48 +0200 |
commit | 0f77c9d3d88724dbe5949bfc3c9d8e37c0009bd6 (patch) | |
tree | 435382bdca3baa9c6916d294b2106309940a00b3 /libimagtodo | |
parent | efd72d65a11112bbe8182a27ad8ba7d1ee0bbc84 (diff) |
experiment with Store/FileLockEntry
Diffstat (limited to 'libimagtodo')
-rw-r--r-- | libimagtodo/Cargo.toml | 1 | ||||
-rw-r--r-- | libimagtodo/src/lib.rs | 1 | ||||
-rw-r--r-- | libimagtodo/src/task.rs | 15 |
3 files changed, 13 insertions, 4 deletions
diff --git a/libimagtodo/Cargo.toml b/libimagtodo/Cargo.toml index afc6c4f9..07059ac9 100644 --- a/libimagtodo/Cargo.toml +++ b/libimagtodo/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["mario <mario-krehl@gmx.de>"] [dependencies] +semver = "0.2" task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" } [dependencies.libimagstore] diff --git a/libimagtodo/src/lib.rs b/libimagtodo/src/lib.rs index 4149a420..fdd29389 100644 --- a/libimagtodo/src/lib.rs +++ b/libimagtodo/src/lib.rs @@ -1,3 +1,4 @@ +extern crate semver; extern crate task_hookrs; #[macro_use] extern crate libimagstore; diff --git a/libimagtodo/src/task.rs b/libimagtodo/src/task.rs index 0dfa9c6f..5ff6bc5b 100644 --- a/libimagtodo/src/task.rs +++ b/libimagtodo/src/task.rs @@ -4,10 +4,17 @@ use task_hookrs::task::Task as TTask; use libimagstore::store::FileLockEntry; -pub struct Task { - uuid : str, +#[derive(Debug)] +pub struct Task<'a> { + flentry : FileLockEntry<'a>, } -impl Deref<FileLockEntry> for Task { - +impl<'a> From<TTask> for Task<'a> { + fn from(ttask : TTask) -> Task<'a> { + Task { + flentry : { + } + } + } } + |