mirror of
https://git.proxmox.com/git/proxmox
synced 2025-11-06 08:39:55 +00:00
Reference a predefined BACKUP_ARCHIVE_NAME StringSchema like
this:
#[api(
input: {
properties: {
archive: {
optional: true,
schema: BACKUP_ARCHIVE_NAME,
},
}
}
)]
fn get_archive(archive: String) -> Result<(), Error> {
...
}
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
||
|---|---|---|
| .. | ||
| api1.rs | ||
| api2.rs | ||
| ext-schema.rs | ||
| types.rs | ||