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§
fn validate( &self, ctx: &'schema Context<'schema>, yaml: &'yaml Yaml, ) -> Result<(), ValidationError<'yaml>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".