pub trait MessageValidator {
    // Required method
    fn validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 MessagePayload<Message>
    ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

Trait of message validator.

Required Methods§

source

fn validate<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 MessagePayload<Message> ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Externality validator

Implementors§