datasources 0.1.5

Async datasource interfaces, middleware, registry, and test doubles
Documentation
1
2
3
4
5
6
use crate::result::Result;

pub trait Mapping<TFrom, TTo> {
    fn convert(&self, from: &TFrom) -> Result<TTo>;
    fn reverse_convert(&self, to: &TTo) -> Result<TFrom>;
}