proxmox/proxmox-api-macro
Wolfgang Bumiller d3ec63f26d api-macro: allow referencing external schemas in properties
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>
2019-12-03 11:11:46 +01:00
..
src api-macro: allow referencing external schemas in properties 2019-12-03 11:11:46 +01:00
tests api-macro: allow referencing external schemas in properties 2019-12-03 11:11:46 +01:00
Cargo.toml api-macro: update to 1.0 of syn/quote/proc_macro2 2019-10-04 13:42:03 +02:00