Skip to main content

OutcomeProjection

Trait OutcomeProjection 

Source
pub trait OutcomeProjection<B, O>{
    // Required method
    fn constant(&self, outcome: &O) -> Result<SqlxFragment<B>, LowerError>;
}
Expand description

Projection strategy for turning outcomes into SQL fragments.

Required Methods§

Source

fn constant(&self, outcome: &O) -> Result<SqlxFragment<B>, 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".

Implementors§