pub trait ProviderAdapter:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn matches_path(&self, method: &Method, path: &str) -> bool;
fn upstream_base(&self) -> &Url;
fn request_pii_surfaces<'a>(
&self,
body: &'a mut Value,
) -> Vec<PiiSurface<'a>>;
fn response_pii_surfaces<'a>(
&self,
body: &'a mut Value,
) -> Vec<PiiSurface<'a>>;
fn sse_event_pii_surfaces<'a>(
&self,
event: &'a mut SseEvent,
) -> Vec<PiiSurface<'a>>;
}Required Methods§
fn name(&self) -> &'static str
fn matches_path(&self, method: &Method, path: &str) -> bool
fn upstream_base(&self) -> &Url
fn request_pii_surfaces<'a>(&self, body: &'a mut Value) -> Vec<PiiSurface<'a>>
fn response_pii_surfaces<'a>(&self, body: &'a mut Value) -> Vec<PiiSurface<'a>>
fn sse_event_pii_surfaces<'a>( &self, event: &'a mut SseEvent, ) -> Vec<PiiSurface<'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".