systemprompt_api/services/gateway/safety/
null.rs1use async_trait::async_trait;
2
3use super::{Finding, SafetyScanner};
4use crate::services::gateway::models::AnthropicGatewayRequest;
5
6#[derive(Debug, Clone, Copy, Default)]
7pub struct NullScanner;
8
9#[async_trait]
10impl SafetyScanner for NullScanner {
11 fn name(&self) -> &'static str {
12 "null"
13 }
14 async fn scan_request(&self, _req: &AnthropicGatewayRequest) -> Vec<Finding> {
15 Vec::new()
16 }
17 async fn scan_response_final(&self, _body: &[u8]) -> Vec<Finding> {
18 Vec::new()
19 }
20}