Added maybe_async to VacationResponse
parent
13ec3740f2
commit
998e1ca79c
|
@ -23,6 +23,7 @@ use crate::{
|
||||||
use super::{Property, VacationResponse};
|
use super::{Property, VacationResponse};
|
||||||
|
|
||||||
impl Client {
|
impl Client {
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn vacation_response_create(
|
pub async fn vacation_response_create(
|
||||||
&self,
|
&self,
|
||||||
subject: impl Into<String>,
|
subject: impl Into<String>,
|
||||||
|
@ -46,6 +47,7 @@ impl Client {
|
||||||
.created(&created_id)
|
.created(&created_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn vacation_response_enable(
|
pub async fn vacation_response_enable(
|
||||||
&self,
|
&self,
|
||||||
subject: impl Into<String>,
|
subject: impl Into<String>,
|
||||||
|
@ -67,6 +69,7 @@ impl Client {
|
||||||
.updated("singleton")
|
.updated("singleton")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn vacation_response_disable(&self) -> crate::Result<Option<VacationResponse>> {
|
pub async fn vacation_response_disable(&self) -> crate::Result<Option<VacationResponse>> {
|
||||||
let mut request = self.build();
|
let mut request = self.build();
|
||||||
request
|
request
|
||||||
|
@ -80,6 +83,7 @@ impl Client {
|
||||||
.updated("singleton")
|
.updated("singleton")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn vacation_response_set_dates(
|
pub async fn vacation_response_set_dates(
|
||||||
&self,
|
&self,
|
||||||
from_date: Option<i64>,
|
from_date: Option<i64>,
|
||||||
|
@ -99,6 +103,7 @@ impl Client {
|
||||||
.updated("singleton")
|
.updated("singleton")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn vacation_response_get(
|
pub async fn vacation_response_get(
|
||||||
&self,
|
&self,
|
||||||
properties: Option<impl IntoIterator<Item = Property>>,
|
properties: Option<impl IntoIterator<Item = Property>>,
|
||||||
|
@ -114,6 +119,7 @@ impl Client {
|
||||||
.map(|mut r| r.take_list().pop())
|
.map(|mut r| r.take_list().pop())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn vacation_response_destroy(&self) -> crate::Result<()> {
|
pub async fn vacation_response_destroy(&self) -> crate::Result<()> {
|
||||||
let mut request = self.build();
|
let mut request = self.build();
|
||||||
request.set_vacation_response().destroy(["singleton"]);
|
request.set_vacation_response().destroy(["singleton"]);
|
||||||
|
@ -134,6 +140,7 @@ impl Request<'_> {
|
||||||
.vacation_response_get_mut()
|
.vacation_response_get_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn send_get_vacation_response(self) -> crate::Result<VacationResponseGetResponse> {
|
pub async fn send_get_vacation_response(self) -> crate::Result<VacationResponseGetResponse> {
|
||||||
self.send_single().await
|
self.send_single().await
|
||||||
}
|
}
|
||||||
|
@ -147,6 +154,7 @@ impl Request<'_> {
|
||||||
.vacation_response_set_mut()
|
.vacation_response_set_mut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[maybe_async::maybe_async]
|
||||||
pub async fn send_set_vacation_response(self) -> crate::Result<VacationResponseSetResponse> {
|
pub async fn send_set_vacation_response(self) -> crate::Result<VacationResponseSetResponse> {
|
||||||
self.send_single().await
|
self.send_single().await
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,10 +10,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pub mod get;
|
pub mod get;
|
||||||
#[cfg(feature = "async")]
|
|
||||||
pub mod helpers;
|
pub mod helpers;
|
||||||
#[cfg(feature = "blocking")]
|
|
||||||
pub mod helpers_blocking;
|
|
||||||
pub mod set;
|
pub mod set;
|
||||||
|
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
|
|
Loading…
Reference in New Issue