proxmox/proxmox-api-macro/tests
Wolfgang Bumiller c48e17fe26 macro: add cli property and remove specialization
Drop #!feature(specialization) in favor of having a `cli`
property for types to decide whether they are CLI
compatible.

The unconstrained_type! macro now has both ParseCli and
ParseCliFromStr in view, and requires one of the two to be
implemented for a type. This means that if a type implements
FromStr, it should "just work".

For types created without the help of the #[api] macro,
there's a shortcut to exclude a type from the CLI via
the no_cli_type!{typename} macro.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-06-17 12:31:29 +02:00
..
basic.rs macro: add cli property and remove specialization 2019-06-17 12:31:29 +02:00
verification.rs macro: implement minimum and maximum verification 2019-06-13 14:29:09 +02:00