pub trait QueryExactOne {
type ResultRow: PgResultRow;
type SqlIdType;
const SQL_ID: Self::SqlIdType;
const SQL_TEXT: &'static str;
const PARAM_NAMES: NamesList;
const TYPE_CHECKS: ReqTypeChecks;
// Required method
fn params(&self) -> impl ExactSizeIterator<Item = impl BorrowToSql>;
}Expand description
Trait for queries with = type prefix: =RetType.
ⓘ
pg_sql! {
impl ... for =RetType {
//
}
}Required Associated Constants§
const SQL_ID: Self::SqlIdType
const SQL_TEXT: &'static str
const PARAM_NAMES: NamesList
const TYPE_CHECKS: ReqTypeChecks
Required Associated Types§
type ResultRow: PgResultRow
type SqlIdType
Required Methods§
fn params(&self) -> impl ExactSizeIterator<Item = impl BorrowToSql>
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.