diff options
author | metamuffin <yvchraiqi@protonmail.com> | 2022-06-14 13:58:09 +0200 |
---|---|---|
committer | metamuffin <yvchraiqi@protonmail.com> | 2022-06-14 13:58:09 +0200 |
commit | 09ee50601311c802e67e1f7b0a5278c334d2e406 (patch) | |
tree | 12325eda3288e08c16ffd85cce0aaa3ff4344be9 /karlcommon/src | |
parent | a7abc26af31b69db06a5875fc3fbc756adc838b1 (diff) | |
download | karlender-09ee50601311c802e67e1f7b0a5278c334d2e406.tar karlender-09ee50601311c802e67e1f7b0a5278c334d2e406.tar.bz2 karlender-09ee50601311c802e67e1f7b0a5278c334d2e406.tar.zst |
dynamic scheduling
Diffstat (limited to 'karlcommon/src')
-rw-r--r-- | karlcommon/src/protocol.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<i64>, + scheduled: Option<Range<i64>>, 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, |