#[async_trait::async_trait]
pub trait Publisher: std::fmt::Debug + Send + Sync {
async fn publish(
&self,
req: crate::model::PublishRequest,
options: gax::options::RequestOptions,
) -> crate::Result<gax::response::Response<crate::model::PublishResponse>>;
}
#[async_trait::async_trait]
impl<T: super::Publisher> Publisher for T {
async fn publish(
&self,
req: crate::model::PublishRequest,
options: gax::options::RequestOptions,
) -> crate::Result<gax::response::Response<crate::model::PublishResponse>> {
T::publish(self, req, options).await
}
}