pub trait OutcomeProjection<O> {
// Required method
fn constant(&self, outcome: &O) -> Result<PgFragment, LowerError>;
}Expand description
Projection strategy for turning outcomes into SQL fragments.
Required Methods§
Sourcefn constant(&self, outcome: &O) -> Result<PgFragment, LowerError>
fn constant(&self, outcome: &O) -> Result<PgFragment, LowerError>
Builds a SQL fragment for a constant outcome.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".