pub trait HttpValidator: Send + Sync {
// Required method
fn validate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
endpoint: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Trait for HTTP/API validation operations.
Required Methods§
Sourcefn validate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
endpoint: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn validate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
endpoint: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Validate a value against an external API endpoint.