Trait Attribute

Source
pub trait Attribute: Debug {
    // Required method
    fn validate(
        &self,
        state: &State,
        path: Vec<String>,
        input: &Value,
    ) -> Result<(), ValidationError>;
}

Required Methods§

Source

fn validate( &self, state: &State, path: Vec<String>, input: &Value, ) -> Result<(), ValidationError>

Implementors§