pub trait ToSql: Send + Sync {
// Required methods
fn to_sql(&self) -> Result<Vec<u8>, PgError>;
fn pg_type(&self) -> &'static PgType;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".