Trait Serializable
pub trait Serializable<S>: Sizedwhere
S: Copy,{
// Required methods
fn serialize(
&self,
ctx: SerializerCtx<'_, S>,
path: &str,
) -> SerializedValue;
fn deserialize(
&mut self,
ctx: SerializerCtx<'_, S>,
path: &str,
serialized: &SerializedValue,
);
}Required Methods§
fn serialize(&self, ctx: SerializerCtx<'_, S>, path: &str) -> SerializedValue
fn deserialize( &mut self, ctx: SerializerCtx<'_, S>, path: &str, serialized: &SerializedValue, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".