Added maybe_async to VacationResponse
This commit is contained in:
@@ -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<String>,
|
||||
@@ -46,6 +47,7 @@ impl Client {
|
||||
.created(&created_id)
|
||||
}
|
||||
|
||||
#[maybe_async::maybe_async]
|
||||
pub async fn vacation_response_enable(
|
||||
&self,
|
||||
subject: impl Into<String>,
|
||||
@@ -67,6 +69,7 @@ impl Client {
|
||||
.updated("singleton")
|
||||
}
|
||||
|
||||
#[maybe_async::maybe_async]
|
||||
pub async fn vacation_response_disable(&self) -> crate::Result<Option<VacationResponse>> {
|
||||
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<i64>,
|
||||
@@ -99,6 +103,7 @@ impl Client {
|
||||
.updated("singleton")
|
||||
}
|
||||
|
||||
#[maybe_async::maybe_async]
|
||||
pub async fn vacation_response_get(
|
||||
&self,
|
||||
properties: Option<impl IntoIterator<Item = Property>>,
|
||||
@@ -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<VacationResponseGetResponse> {
|
||||
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<VacationResponseSetResponse> {
|
||||
self.send_single().await
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user