From 998e1ca79cff3486ea4d998d9b4d569f9fadc899 Mon Sep 17 00:00:00 2001 From: Mauro D Date: Tue, 18 Apr 2023 16:53:16 +0000 Subject: [PATCH] Added maybe_async to VacationResponse --- src/vacation_response/helpers.rs | 8 ++++++++ src/vacation_response/mod.rs | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/vacation_response/helpers.rs b/src/vacation_response/helpers.rs index a296a29..2039f2f 100644 --- a/src/vacation_response/helpers.rs +++ b/src/vacation_response/helpers.rs @@ -23,6 +23,7 @@ use crate::{ use super::{Property, VacationResponse}; impl Client { + #[maybe_async::maybe_async] pub async fn vacation_response_create( &self, subject: impl Into, @@ -46,6 +47,7 @@ impl Client { .created(&created_id) } + #[maybe_async::maybe_async] pub async fn vacation_response_enable( &self, subject: impl Into, @@ -67,6 +69,7 @@ impl Client { .updated("singleton") } + #[maybe_async::maybe_async] pub async fn vacation_response_disable(&self) -> crate::Result> { let mut request = self.build(); request @@ -80,6 +83,7 @@ impl Client { .updated("singleton") } + #[maybe_async::maybe_async] pub async fn vacation_response_set_dates( &self, from_date: Option, @@ -99,6 +103,7 @@ impl Client { .updated("singleton") } + #[maybe_async::maybe_async] pub async fn vacation_response_get( &self, properties: Option>, @@ -114,6 +119,7 @@ impl Client { .map(|mut r| r.take_list().pop()) } + #[maybe_async::maybe_async] pub async fn vacation_response_destroy(&self) -> crate::Result<()> { let mut request = self.build(); request.set_vacation_response().destroy(["singleton"]); @@ -134,6 +140,7 @@ impl Request<'_> { .vacation_response_get_mut() } + #[maybe_async::maybe_async] pub async fn send_get_vacation_response(self) -> crate::Result { self.send_single().await } @@ -147,6 +154,7 @@ impl Request<'_> { .vacation_response_set_mut() } + #[maybe_async::maybe_async] pub async fn send_set_vacation_response(self) -> crate::Result { self.send_single().await } diff --git a/src/vacation_response/mod.rs b/src/vacation_response/mod.rs index 8460e4d..688de95 100644 --- a/src/vacation_response/mod.rs +++ b/src/vacation_response/mod.rs @@ -10,10 +10,7 @@ */ pub mod get; -#[cfg(feature = "async")] pub mod helpers; -#[cfg(feature = "blocking")] -pub mod helpers_blocking; pub mod set; use std::fmt::Display;