Trait lockchain_core::traits::AutoEncoder[][src]

pub trait AutoEncoder: Serialize + DeserializeOwned {
    fn encode(&self) -> Result<String, SerdeError> { ... }
fn decode(s: &str) -> Result<Self, SerdeError> { ... } }

Auto-implement this trait to serialise types to json

Provided Methods

Implementors