pub trait EqtsValue: Sized {
// Required methods
fn schema() -> Type;
fn from_json(value: Value) -> Result<Self, String>;
fn into_json(self) -> Result<Value, String>;
}Required Methods§
fn schema() -> Type
fn from_json(value: Value) -> Result<Self, String>
fn into_json(self) -> Result<Value, String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".