pub trait DataMapper: Send + 'static {
type In: Data;
type Out: Send + 'static;
// Required method
fn map(self, data: Self::In) -> Result<Self::Out>;
}Expand description
Data mapper, to map data from an In type to an Out type,
this is useful for using the built-in caching mechanism of the DataLoader