pub trait JsonSerialize {
// Required method
fn json_serialize<W: Writer>(&self, writer: &mut JsonWriter<W>);
}Expand description
Trait for types that can be serialized to JSON
Required Methods§
Sourcefn json_serialize<W: Writer>(&self, writer: &mut JsonWriter<W>)
fn json_serialize<W: Writer>(&self, writer: &mut JsonWriter<W>)
Serialize this value to the given writer
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.