pub trait VisionVerifier: Send + Sync {
// Required method
fn verify<'life0, 'life1, 'async_trait>(
&'life0 self,
request: VisionRequest<'life1>,
) -> Pin<Box<dyn Future<Output = VisionVerdict> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
The vision verification plugin interface (verify role only).
Required Methods§
Sourcefn verify<'life0, 'life1, 'async_trait>(
&'life0 self,
request: VisionRequest<'life1>,
) -> Pin<Box<dyn Future<Output = VisionVerdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn verify<'life0, 'life1, 'async_trait>(
&'life0 self,
request: VisionRequest<'life1>,
) -> Pin<Box<dyn Future<Output = VisionVerdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Answers request.prompt against the screenshot. Infallible by
construction: anything that prevents an answer is an unknown
verdict with a reason, never an error (principle 4).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".