pub trait Serialize {
// Required method
fn begin(&self) -> Fragment<'_>;
}Expand description
Trait for data structures that can be serialized to a JSON string.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".