diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2018-05-01 23:23:12 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2018-05-01 23:27:52 +0200 |
commit | 45e5a795aeeeb2bf201c518570f59c675b19a6c9 (patch) | |
tree | fae6b77b80c339328140a1a95aed2a1f8ef1826b | |
parent | 3a61225d9d434d4d1f8787649b439f56b073f1a7 (diff) |
Make Tasks comparable
-rw-r--r-- | src/annotation.rs | 2 | ||||
-rw-r--r-- | src/task.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/annotation.rs b/src/annotation.rs index 9ef3654..3d77897 100644 --- a/src/annotation.rs +++ b/src/annotation.rs @@ -11,7 +11,7 @@ use date::Date; /// Annotation type for task annotations. /// Each annotation in taskwarrior consists of a date and a description, /// the date is named "entry", the description "description" in the JSON export. -#[derive(Clone, Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] pub struct Annotation { entry: Date, description: String, diff --git a/src/task.rs b/src/task.rs index c2317e0..8e797e9 100644 --- a/src/task.rs +++ b/src/task.rs @@ -40,7 +40,7 @@ use uda::{UDA, UDAName, UDAValue}; /// /// It is deserializeable and serializeable via serde_json, so importing and exporting taskwarrior /// tasks is simply serializing and deserializing objects of this type. -#[derive(Debug, Clone, Builder)] +#[derive(Debug, Clone, PartialEq, Builder)] #[builder(setter(into))] pub struct Task { /// The temporary assigned task id |