#[async_trait::async_trait]
pub trait CloudLocationFinder: std::fmt::Debug + Send + Sync {
async fn list_cloud_locations(
&self,
req: crate::model::ListCloudLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListCloudLocationsResponse>>;
async fn get_cloud_location(
&self,
req: crate::model::GetCloudLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::CloudLocation>>;
async fn search_cloud_locations(
&self,
req: crate::model::SearchCloudLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::SearchCloudLocationsResponse>>;
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>>;
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::Location>>;
}
#[async_trait::async_trait]
impl<T: super::CloudLocationFinder> CloudLocationFinder for T {
async fn list_cloud_locations(
&self,
req: crate::model::ListCloudLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::ListCloudLocationsResponse>> {
T::list_cloud_locations(self, req, options).await
}
async fn get_cloud_location(
&self,
req: crate::model::GetCloudLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::CloudLocation>> {
T::get_cloud_location(self, req, options).await
}
async fn search_cloud_locations(
&self,
req: crate::model::SearchCloudLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<crate::model::SearchCloudLocationsResponse>> {
T::search_cloud_locations(self, req, options).await
}
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
T::list_locations(self, req, options).await
}
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> crate::Result<crate::Response<google_cloud_location::model::Location>> {
T::get_location(self, req, options).await
}
}