pub trait StaticType {
const OID: Oid;
const NULLABLE: bool = false;
}Expand description
A value with a statically known PostgreSQL type OID.
Used by the query! / query_as! macros to check parameter types at
compile time. This trait is deliberately separate from ToSql because an
associated constant would make ToSql not object-safe.
Required Associated Constants§
Provided Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".