forked from proxmox-mirrors/proxmox
api-macro: some more test code
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
22581b382c
commit
6afad53466
@ -37,6 +37,7 @@ pub enum Selection {
|
|||||||
input: {
|
input: {
|
||||||
properties: {
|
properties: {
|
||||||
arg: { type: OkString },
|
arg: { type: OkString },
|
||||||
|
selection: { type: Selection },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
returns: { type: Boolean },
|
returns: { type: Boolean },
|
||||||
@ -44,7 +45,8 @@ pub enum Selection {
|
|||||||
/// Check a string.
|
/// Check a string.
|
||||||
///
|
///
|
||||||
/// Returns: Whether the string was "ok".
|
/// Returns: Whether the string was "ok".
|
||||||
pub fn string_check(arg: Value) -> Result<bool, Error> {
|
pub fn string_check(arg: Value, selection: Selection) -> Result<bool, Error> {
|
||||||
let _ = arg;
|
let _ = arg;
|
||||||
|
let _ = selection;
|
||||||
panic!("body")
|
panic!("body")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user