summaryrefslogtreecommitdiffstats
path: root/src/task.rs
AgeCommit message (Collapse)Author
2023-06-30Fix clippy: Remove needless bindingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-12-29Support taskwarrior 2.6.0 serialization formatImran Iqbal
As of taskwarrior 2.6.0 the depends field changed from being a string of comma seperated uuid's to being a proper json array of uuid strings. This commit allows the selection of which serialization format to use with the help of typestating. Task<TW26> will (de)serialize to the new format, while Task<TW25> will retain the older behaviour. This will allow this library to be used with any version of taskwarrior. Signed-off-by: Imran Iqbal <imran@imraniqbal.org>
2022-12-18Remove "extern crate" declarationsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-12-18cargo-fix --editionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Simplify matchesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Allow function with too many argsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Remove lifetime that can be inferredMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Remove ref keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Do use char for pattern instead of strMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Simplify construction of objectMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Use assert_eq!() instead of assert!() with == comparisonMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-08-09Replace assert!(false) with panic!()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-11-02Run `cargo fmt`Imran Iqbal
Suggested-by: Dheepak Krishnamurthy <me@kdheepak.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-02-13Add testDheepak Krishnamurthy
2021-02-13Make priority a string typeDheepak Krishnamurthy
2020-10-24Fix where syntaxDheepak Krishnamurthy
2020-10-24Add tests for urgencyDheepak Krishnamurthy
2020-10-24Add urgency to taskDheepak Krishnamurthy
2020-08-04Remove unused generic typeMatthias Beyer
Somehow this slipped in. The type is unused, so remove it. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Reported-by: Dheepak Krishnamurthy <me@kdheepak.com>
2019-11-09Fix: imask has type f64Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-11-09Remove unused importMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-09-30Merge pull request #73 from maralorn/fix-mutabilityMatthias Beyer
Add setters
2018-09-30Merge pull request #77 from maralorn/partialeqMatthias Beyer
Make Tasks comparable
2018-05-01Make Tasks comparableMalte Brandy
2018-04-30Add settersMalte Brandy
2018-04-29Add comment that description is mandatoryMalte Brandy
2018-04-20task.rs: tests: Remove unnecessary .to_owned()Malte Brandy
2018-04-20Add TaskBuilder with necessary docs for itMalte Brandy
2018-04-20Add builder typeMatthias Beyer
2018-04-19Change type of depends to Vec<Uuid>Malte Brandy
2018-04-19Merge pull request #63 from maralorn/simpler-udaMalte Brandy
Simplify the types for UDAs
2018-04-19Simplify the types for UDAsMalte Brandy
2018-04-19Refactor: Replace try! macro with ? operatorMalte Brandy
2018-04-19Apply rustfmtMalte Brandy
2018-04-19Fix serialization of udasMalte Brandy
2018-04-19Add tests for uda serialization and deserialization (and fix found bug in ↵Malte Brandy
serializer)
2018-04-19Correctly use debug! macroMalte Brandy
2018-04-19Make everything work with recent serdeMalte Brandy
2018-04-18[PENDING] We have String/u64/f64 as possible values, so de/ser properly hereMatthias Beyer
2018-04-18De/serialize "id" as Task fieldMatthias Beyer
2018-04-18Add env-logger in test executionMatthias Beyer
2018-04-18Serialize UDA elem in Task typeMatthias Beyer
2018-04-18Integrate UDA type into Task typeMatthias Beyer
2018-04-18Add basic UDA supportMatthias Beyer
2017-09-18Implement a RW interfaceMatthias Beyer
The types offered by this crate are merely data-holding things. We do not compute values, aggregate data or something like this, we are simply representing a nice JSON -> Rust Type -> JSON mapping via Serde. Hence, we should offer a nice read-write interface. This patch removes the Task::add_annotation() and Task::add_annotations() functions but adds mut-getters for all attributes.
2017-09-18Rewrite to use serde 1Matthias Beyer
2017-02-03Skip serializing if options are noneMatthias Beyer
2017-02-03Because of custom derive, we have to make these optionalMatthias Beyer
2017-02-03Try out whether deriving worksMatthias Beyer
2017-02-03Update to new serde de/ser interfaceMatthias Beyer