pub trait BinaryDecode: Sized {
// Required method
fn decode_binary(data: &[u8]) -> Result<Self, Error>;
}Expand description
Decode a value from PostgreSQL binary format.
Required Methods§
Sourcefn decode_binary(data: &[u8]) -> Result<Self, Error>
fn decode_binary(data: &[u8]) -> Result<Self, Error>
Decode from PostgreSQL binary representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.