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