use crate::Result;
#[derive(Clone, Debug)]
pub struct AdvisoryNotificationsService<T>
where
T: super::stub::AdvisoryNotificationsService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> AdvisoryNotificationsService<T>
where
T: super::stub::AdvisoryNotificationsService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::AdvisoryNotificationsService for AdvisoryNotificationsService<T>
where
T: super::stub::AdvisoryNotificationsService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_notifications(
&self,
req: crate::model::ListNotificationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListNotificationsResponse>> {
self.inner.list_notifications(req, options).await
}
#[tracing::instrument(ret)]
async fn get_notification(
&self,
req: crate::model::GetNotificationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Notification>> {
self.inner.get_notification(req, options).await
}
#[tracing::instrument(ret)]
async fn get_settings(
&self,
req: crate::model::GetSettingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Settings>> {
self.inner.get_settings(req, options).await
}
#[tracing::instrument(ret)]
async fn update_settings(
&self,
req: crate::model::UpdateSettingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Settings>> {
self.inner.update_settings(req, options).await
}
}