mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
This commit is contained in:
committed by
Aiden McClelland
parent
eacc07081c
commit
0aba77867c
@@ -858,6 +858,9 @@ pub struct ValueSpecNumber {
|
||||
integral: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
units: Option<String>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub placeholder: Option<Number>,
|
||||
}
|
||||
#[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<String>,
|
||||
}
|
||||
#[async_trait]
|
||||
impl ValueSpec for ValueSpecString {
|
||||
|
||||
Reference in New Issue
Block a user