Skip to main content

rbdc_pg/types/
decode.rs

1use crate::value::PgValueRef;
2use rbdc::Error;
3
4pub trait Decode: Sized {
5    /// Decode a new value of this type using a raw value from the database.
6    fn decode(value: PgValueRef) -> Result<Self, Error>;
7}