]> git.proxmox.com Git - proxmox-backup.git/commit
api: add GroupFilter(List) type
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 28 Oct 2021 13:00:49 +0000 (15:00 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Nov 2021 09:36:57 +0000 (10:36 +0100)
commit3e276f6fb6c90e7d4dbadbd8cb53160f91b575b2
tree05b261d588f5095fb9da5e2e8fbf9745112fcbaa
parent2b00c5abca61004069fb03956842880d4ba95d53
api: add GroupFilter(List) type

at the API level, this is a simple (wrapped) Vec of Strings with a
verifier function. all users should use the provided helper to get the
actual GroupFilter enum values, which can't be directly used in the API
schema because of restrictions of the api macro.

validation of the schema + parsing into the proper type uses the same fn
intentionally to avoid running out of sync, even if it means compiling
the REs twice.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-api-types/src/jobs.rs