use crate::Result;
#[derive(Clone, Debug)]
pub struct BinauthzManagementServiceV1<T>
where
T: super::stub::BinauthzManagementServiceV1 + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> BinauthzManagementServiceV1<T>
where
T: super::stub::BinauthzManagementServiceV1 + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::BinauthzManagementServiceV1 for BinauthzManagementServiceV1<T>
where
T: super::stub::BinauthzManagementServiceV1 + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_policy(
&self,
req: crate::model::GetPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Policy>> {
self.inner.get_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn update_policy(
&self,
req: crate::model::UpdatePolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Policy>> {
self.inner.update_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn create_attestor(
&self,
req: crate::model::CreateAttestorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Attestor>> {
self.inner.create_attestor(req, options).await
}
#[tracing::instrument(ret)]
async fn get_attestor(
&self,
req: crate::model::GetAttestorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Attestor>> {
self.inner.get_attestor(req, options).await
}
#[tracing::instrument(ret)]
async fn update_attestor(
&self,
req: crate::model::UpdateAttestorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Attestor>> {
self.inner.update_attestor(req, options).await
}
#[tracing::instrument(ret)]
async fn list_attestors(
&self,
req: crate::model::ListAttestorsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListAttestorsResponse>> {
self.inner.list_attestors(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_attestor(
&self,
req: crate::model::DeleteAttestorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_attestor(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct SystemPolicyV1<T>
where
T: super::stub::SystemPolicyV1 + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> SystemPolicyV1<T>
where
T: super::stub::SystemPolicyV1 + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::SystemPolicyV1 for SystemPolicyV1<T>
where
T: super::stub::SystemPolicyV1 + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_system_policy(
&self,
req: crate::model::GetSystemPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Policy>> {
self.inner.get_system_policy(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct ValidationHelperV1<T>
where
T: super::stub::ValidationHelperV1 + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ValidationHelperV1<T>
where
T: super::stub::ValidationHelperV1 + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ValidationHelperV1 for ValidationHelperV1<T>
where
T: super::stub::ValidationHelperV1 + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn validate_attestation_occurrence(
&self,
req: crate::model::ValidateAttestationOccurrenceRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ValidateAttestationOccurrenceResponse>> {
self.inner
.validate_attestation_occurrence(req, options)
.await
}
}