pub trait Serializable: Send + Sync {
// Required method
fn serialize_to_json(&self) -> Result<Vec<Value>>;
}Required Methods§
Sourcefn serialize_to_json(&self) -> Result<Vec<Value>>
fn serialize_to_json(&self) -> Result<Vec<Value>>
Serialize a column of value with given type to JSON value
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".