Ryan Leckey 6b22fb7489 Refactor HasSqlType to provide an array of compatible types.
* Intending to use in a new Row type to check types at runtime for
   dynamic queries and to guard against schema changes

 * Hoping the query! macro can utilize this to allow accepting N
   rust types for 1 sql type and returning N rust types for 1 sql
   type.
2020-01-14 23:27:42 -08:00

6 lines
101 B
Rust

pub trait Decode {
fn decode(buf: &[u8]) -> crate::Result<Self>
where
Self: Sized;
}