1
2
3
4
5
6
7
use crate::Error;

/// data format transfer
pub trait Serde<S, T> {
    fn de(h: T) -> Result<S, Error>;
    fn ser(&self) -> T;
}