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
fn encode(&self) -> Result<String, SerdeError>
fn decode(s: &str) -> Result<Self, SerdeError>
Implementors
impl AutoEncoder for Keyimpl AutoEncoder for PackedDataimpl<T: Body> AutoEncoder for Record<T>