pub trait DisplayJsonwhere
Self: Sized,{
// Required method
fn to_serde_value(&self) -> Result<Value>;
}
Expand description
A trait implemented by explanation types that can be rendered as
ExplainFormat::Json
.
Required Methods§
fn to_serde_value(&self) -> Result<Value>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.