1 2 3 4 5 6 7 8 9
use anyhow::Result; /// A trait for an object that can serialize and deserialize to and from a utf-8 string. pub trait Serializable { fn serialize(&self) -> Result<String>; } #[cfg(feature = "yaml")] pub mod yaml;