added uuid crate and type
This commit is contained in:
parent
0f77c9d3d8
commit
df6f41942b
3 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ authors = ["mario <mario-krehl@gmx.de>"]
|
|||
[dependencies]
|
||||
semver = "0.2"
|
||||
task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" }
|
||||
uuid = "0.2.0"
|
||||
|
||||
[dependencies.libimagstore]
|
||||
path = "../libimagstore"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
extern crate semver;
|
||||
extern crate uuid;
|
||||
|
||||
extern crate task_hookrs;
|
||||
#[macro_use] extern crate libimagstore;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use std::ops::Deref;
|
||||
|
||||
use uuid::Uuid;
|
||||
use task_hookrs::task::Task as TTask;
|
||||
|
||||
use libimagstore::store::FileLockEntry;
|
||||
|
@ -7,6 +8,7 @@ use libimagstore::store::FileLockEntry;
|
|||
#[derive(Debug)]
|
||||
pub struct Task<'a> {
|
||||
flentry : FileLockEntry<'a>,
|
||||
uuid : Uuid,
|
||||
}
|
||||
|
||||
impl<'a> From<TTask> for Task<'a> {
|
||||
|
|
Loading…
Reference in a new issue