pub trait VldInput {
// Required method
fn to_json_value(&self) -> Result<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 — requires the std feature), and
serde_json::Value.
Required Methods§
Sourcefn to_json_value(&self) -> Result<Value, VldError>
fn to_json_value(&self) -> Result<Value, VldError>
Convert this input into a serde_json::Value.