pub trait PluginOptionsSerializer: Send + Sync {
// Required method
fn serialize(&self) -> Result<String, Error>;
}Expand description
A trait for serializing Metasrv config to a JSON string. So it can be used in the metasrv’s crate instead of depending on the plugins’ crate.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".