use super::Service;
use crate::{ApiError, Error, ServiceClient};
use maybe_async::maybe_async;
mod request;
mod response;
pub use request::OnThisDayRequest;
pub use response::OnThisDayResponse;
struct OnThisDayService;
impl Service for OnThisDayService {
const PATH: &'static str = "onthisday";
type Request = OnThisDayRequest;
type Response = OnThisDayResponse;
}
impl ServiceClient {
#[maybe_async]
pub async fn get_events_on_this_day(
&self,
request: &OnThisDayRequest,
) -> Result<Result<OnThisDayResponse, ApiError>, Error> {
self.call::<OnThisDayService>(request).await
}
}