pub trait LogValidator: Send + Sync {
// Required method
fn validate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source: Option<&'life1 str>,
payload: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<Result<HttpResponse>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Required Methods§
sourcefn validate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
source: Option<&'life1 str>,
payload: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<Result<HttpResponse>>> + 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,
source: Option<&'life1 str>,
payload: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<Result<HttpResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
validate payload by source before processing
Return a Some
result to indicate validation failure.