From 882cfde5f36e11b1253d1450b6a9907a489a67c8 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 19 Feb 2021 12:09:03 -0700 Subject: [PATCH] appmgr: add warning to actions --- appmgr/src/actions.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appmgr/src/actions.rs b/appmgr/src/actions.rs index 54255b89a..a84a6d406 100644 --- a/appmgr/src/actions.rs +++ b/appmgr/src/actions.rs @@ -15,6 +15,9 @@ pub struct Action { pub id: String, pub name: String, pub description: String, + #[serde(default)] + #[serde(skip_serializing_if = "Option::is_none")] + pub warning: Option, pub allowed_statuses: LinearSet, pub command: Vec, }