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