Skip to main content

ValidateService

Trait ValidateService 

Source
pub trait ValidateService<I> {
    // Required method
    fn validate(&self, ctx: &mut dyn ValidationContext, input: &I);
}
Expand description

Protocol for services dedicated to pure business logic validation.

Required Methods§

Source

fn validate(&self, ctx: &mut dyn ValidationContext, input: &I)

Implementors§