1/// An error can occur when building dynamic schema 2#[derive(Debug, thiserror::Error, Eq, PartialEq)] 3#[error("{0}")] 4pub struct SchemaError(pub String); 5 6impl<T: Into<String>> From<T> for SchemaError { 7 fn from(err: T) -> Self { 8 SchemaError(err.into()) 9 } 10}