proxmox/proxmox-api-macro
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
..
src macro: add cli property and remove specialization 2019-06-17 12:31:29 +02:00
tests macro: add cli property and remove specialization 2019-06-17 12:31:29 +02:00
Cargo.toml fix missing proxmox_api -> proxmox::api replacement 2019-06-12 09:48:30 +02:00