Skip to main content

ValidateAsyncField

Trait ValidateAsyncField 

Source
pub trait ValidateAsyncField<T, E>: Send + Sync
where E: Error + Send + Sync + 'static,
{ // Required method fn validate_async<'life0, 'life1, 'async_trait>( &'life0 self, dto: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, ValidationError>, E>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }

Required Methods§

Source

fn validate_async<'life0, 'life1, 'async_trait>( &'life0 self, dto: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, ValidationError>, E>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, V, E> ValidateAsyncField<T, E> for FieldRules<T, V, E>
where T: Send + Sync + 'static, V: Send + Sync + 'static, E: Error + Send + Sync + 'static,