From b1e3a9f0d22bdaf6f2f7fc5b6d7574d36f139a91 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 13 Jun 2019 14:19:01 +0200 Subject: [PATCH] impl ApiType for bool Signed-off-by: Wolfgang Bumiller --- proxmox-api/src/api_type.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxmox-api/src/api_type.rs b/proxmox-api/src/api_type.rs index 88bce17f..585fc143 100644 --- a/proxmox-api/src/api_type.rs +++ b/proxmox-api/src/api_type.rs @@ -253,8 +253,9 @@ macro_rules! unconstrained_api_type { } unconstrained_api_type! {Value} // basically our API's "any" type -unconstrained_api_type! {&str} -unconstrained_api_type! {String, isize, usize, i64, u64, i32, u32, i16, u16, i8, u8, f64, f32} +unconstrained_api_type! {String, &str} +unconstrained_api_type! {bool} +unconstrained_api_type! {isize, usize, i64, u64, i32, u32, i16, u16, i8, u8, f64, f32} unconstrained_api_type! {Vec} // Raw return types are also okay: