1 2 3 4 5 6 7 8 9 10 11 12 13
use anyhow::Result; use serde_json::Value; pub trait Constraint { fn validate(&self, val: &Value) -> Result<()>; } pub mod array; pub mod common; pub mod float; pub mod integer; pub mod object; pub mod string;