pub trait SnapshotSerializer<A: Aggregate>:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn serialize(&self, aggregate: &A) -> Result<Vec<u8>, EventStoreWriteError>;
fn deserialize(&self, data: &[u8]) -> Result<Box<A>, EventStoreReadError>;
}