From b01c0f572bde62c26b4b74302f325c935d2564be Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Mon, 30 Oct 2023 13:27:48 +0100 Subject: [PATCH] fix-3211: manager: Document --notify argument Signed-off-by: Maximiliano Sandoval R --- pbs-api-types/src/jobs.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs index b8640216..1f5b3cf1 100644 --- a/pbs-api-types/src/jobs.rs +++ b/pbs-api-types/src/jobs.rs @@ -151,12 +151,13 @@ pub struct DatastoreNotify { pub prune: Option, } -pub const DATASTORE_NOTIFY_STRING_SCHEMA: Schema = - StringSchema::new("Datastore notification setting") - .format(&ApiStringFormat::PropertyString( - &DatastoreNotify::API_SCHEMA, - )) - .schema(); +pub const DATASTORE_NOTIFY_STRING_SCHEMA: Schema = StringSchema::new( + "Datastore notification setting, enum can be one of 'always', 'never', or 'error'.", +) +.format(&ApiStringFormat::PropertyString( + &DatastoreNotify::API_SCHEMA, +)) +.schema(); pub const IGNORE_VERIFIED_BACKUPS_SCHEMA: Schema = BooleanSchema::new( "Do not verify backups that are already verified if their verification is not outdated.",