[pbs-devel] [PATCH v6 proxmox-backup 43/65] specs: add backup detection mode specification
Christian Ebner
c.ebner at proxmox.com
Fri May 24 08:59:12 CEST 2024
On 5/22/24 15:07, Dominik Csapak wrote:
> instead of using a string + regex + parsing, would it not be possible to
> use the #[api] macro + serialize/deserialize derive on the enum instead?
>
> that way we could just use that type in the api
> and the docs would be a bit nicer (instead of saying <string> it would
> be telling us the enum variants)
>
> then you also wouldn't need the regex + StringSchema etc. since the
> serde serialization should take care of that
Yes, good point. Will see how that works out.
More information about the pbs-devel
mailing list