From f37ef25bddfffa16b7077e05e474518baf7446c0 Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Fri, 18 Sep 2020 11:00:47 +0200 Subject: [PATCH] api2: add VERIFY_SCHEDULE_SCHEMA Signed-off-by: Hannes Laimer --- src/api2/types/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api2/types/mod.rs b/src/api2/types/mod.rs index a2211adc..aba307e2 100644 --- a/src/api2/types/mod.rs +++ b/src/api2/types/mod.rs @@ -302,6 +302,11 @@ pub const PRUNE_SCHEDULE_SCHEMA: Schema = StringSchema::new( .format(&ApiStringFormat::VerifyFn(crate::tools::systemd::time::verify_calendar_event)) .schema(); +pub const VERIFY_SCHEDULE_SCHEMA: Schema = StringSchema::new( + "Run verify job at specified schedule.") + .format(&ApiStringFormat::VerifyFn(crate::tools::systemd::time::verify_calendar_event)) + .schema(); + pub const REMOTE_ID_SCHEMA: Schema = StringSchema::new("Remote ID.") .format(&PROXMOX_SAFE_ID_FORMAT) .min_length(3)