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 TypeConverter<To, From> {
    fn convert(&self, from: &From) -> Result<To>;
    fn reverse_convert(&self, to: &To) -> Result<From>;
}