From 09ee50601311c802e67e1f7b0a5278c334d2e406 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 14 Jun 2022 13:58:09 +0200 Subject: dynamic scheduling --- karlcommon/src/protocol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'karlcommon/src') diff --git a/karlcommon/src/protocol.rs b/karlcommon/src/protocol.rs index d0aad41..02a9db1 100644 --- a/karlcommon/src/protocol.rs +++ b/karlcommon/src/protocol.rs @@ -51,7 +51,7 @@ pub enum Schedule { Never, Dynamic { priority: f64, - scheduled: Option, + scheduled: Option>, duration: i64, condition: Condition, // duration, during which the task should be scheduled }, @@ -91,7 +91,7 @@ pub enum Condition { }, } -#[derive(Debug, Clone, Copy, Serialize, Deserialize)] +#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "snake_case")] pub enum Property { Year, -- cgit v1.2.3-70-g09d2