Skip to main content

Schema

Trait Schema 

Source
pub trait Schema: Send + Sync {
    // Required method
    fn parse(&self, value: &Value, ctx: &Ctx) -> Result<Value, ValidationError>;
}

Required Methods§

Source

fn parse(&self, value: &Value, ctx: &Ctx) -> Result<Value, ValidationError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§