pub trait VldInput {
// Required method
fn to_json_value(&self) -> Result<Cow<'_, Value>, VldError>;
}Expand description
Trait for types that can be used as input to schema parsing.
Implemented for JSON strings (str, String), raw bytes ([u8]), file
paths (Path, PathBuf) and serde_json::Value (borrowed, never cloned).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".