use crate::Result;
#[derive(Clone, Debug)]
pub struct WebSecurityScanner<T>
where
T: super::stub::WebSecurityScanner + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> WebSecurityScanner<T>
where
T: super::stub::WebSecurityScanner + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::WebSecurityScanner for WebSecurityScanner<T>
where
T: super::stub::WebSecurityScanner + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_scan_config(
&self,
req: crate::model::CreateScanConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ScanConfig>> {
self.inner.create_scan_config(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_scan_config(
&self,
req: crate::model::DeleteScanConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_scan_config(req, options).await
}
#[tracing::instrument(ret)]
async fn get_scan_config(
&self,
req: crate::model::GetScanConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ScanConfig>> {
self.inner.get_scan_config(req, options).await
}
#[tracing::instrument(ret)]
async fn list_scan_configs(
&self,
req: crate::model::ListScanConfigsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListScanConfigsResponse>> {
self.inner.list_scan_configs(req, options).await
}
#[tracing::instrument(ret)]
async fn update_scan_config(
&self,
req: crate::model::UpdateScanConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ScanConfig>> {
self.inner.update_scan_config(req, options).await
}
#[tracing::instrument(ret)]
async fn start_scan_run(
&self,
req: crate::model::StartScanRunRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ScanRun>> {
self.inner.start_scan_run(req, options).await
}
#[tracing::instrument(ret)]
async fn get_scan_run(
&self,
req: crate::model::GetScanRunRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ScanRun>> {
self.inner.get_scan_run(req, options).await
}
#[tracing::instrument(ret)]
async fn list_scan_runs(
&self,
req: crate::model::ListScanRunsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListScanRunsResponse>> {
self.inner.list_scan_runs(req, options).await
}
#[tracing::instrument(ret)]
async fn stop_scan_run(
&self,
req: crate::model::StopScanRunRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ScanRun>> {
self.inner.stop_scan_run(req, options).await
}
#[tracing::instrument(ret)]
async fn list_crawled_urls(
&self,
req: crate::model::ListCrawledUrlsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListCrawledUrlsResponse>> {
self.inner.list_crawled_urls(req, options).await
}
#[tracing::instrument(ret)]
async fn get_finding(
&self,
req: crate::model::GetFindingRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Finding>> {
self.inner.get_finding(req, options).await
}
#[tracing::instrument(ret)]
async fn list_findings(
&self,
req: crate::model::ListFindingsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFindingsResponse>> {
self.inner.list_findings(req, options).await
}
#[tracing::instrument(ret)]
async fn list_finding_type_stats(
&self,
req: crate::model::ListFindingTypeStatsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListFindingTypeStatsResponse>> {
self.inner.list_finding_type_stats(req, options).await
}
}