valico::json_schema::keywords

Trait Keyword

Source
pub trait Keyword: Sync + Any {
    // Required method
    fn compile(&self, _: &Value, _: &WalkContext<'_>) -> KeywordResult;

    // Provided method
    fn is_exclusive(&self) -> bool { ... }
}

Required Methods§

Source

fn compile(&self, _: &Value, _: &WalkContext<'_>) -> KeywordResult

Provided Methods§

Trait Implementations§

Source§

impl Debug for dyn Keyword + 'static

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§