From 0aba77867cc6713a9b74b8301e9eca3bafd373ce Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Wed, 24 Nov 2021 12:53:42 -0700 Subject: [PATCH] #796 --- appmgr/src/config/spec.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appmgr/src/config/spec.rs b/appmgr/src/config/spec.rs index 6a3cea1fc..da7b6481c 100644 --- a/appmgr/src/config/spec.rs +++ b/appmgr/src/config/spec.rs @@ -858,6 +858,9 @@ pub struct ValueSpecNumber { integral: bool, #[serde(skip_serializing_if = "Option::is_none")] units: Option, + #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default)] + pub placeholder: Option, } #[async_trait] impl ValueSpec for ValueSpecNumber { @@ -1118,6 +1121,9 @@ pub struct ValueSpecString { pub copyable: bool, #[serde(default)] pub masked: bool, + #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default)] + pub placeholder: Option, } #[async_trait] impl ValueSpec for ValueSpecString {