pub trait Decode: Sized {
// Required method
fn decode(value: PgValueRef<'_>) -> Result<Self, Error>;
}Required Methods§
Sourcefn decode(value: PgValueRef<'_>) -> Result<Self, Error>
fn decode(value: PgValueRef<'_>) -> Result<Self, Error>
Decode a new value of this type using a raw value from the database.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".