Validate

Trait Validate 

Source
pub trait Validate<'yaml, 'schema: 'yaml> {
    // Required method
    fn validate(
        &self,
        ctx: &'schema Context<'schema>,
        yaml: &'yaml Yaml,
    ) -> Result<(), ValidationError<'yaml>>;
}
Expand description

Validation trait implemented by all types, as well as the Schema type

Required Methods§

Source

fn validate( &self, ctx: &'schema Context<'schema>, yaml: &'yaml Yaml, ) -> Result<(), ValidationError<'yaml>>

Implementors§

Source§

impl<'yaml, 'schema: 'yaml> Validate<'yaml, 'schema> for Schema<'schema>