Skip to main content

ValueProjectionExpr

Trait ValueProjectionExpr 

Source
pub trait ValueProjectionExpr {
    // Required methods
    fn field(&self) -> &str;
    fn sql_label(&self) -> String;
    fn apply_value(&self, value: Value) -> Result<Value, QueryError>;
}
Expand description

ValueProjectionExpr

Shared bounded scalar projection helper contract used by fluent value-projection terminals. Implementors stay intentionally narrow and do not imply a generic expression-builder surface.

Required Methods§

Source

fn field(&self) -> &str

Borrow the single source field used by this bounded helper.

Source

fn sql_label(&self) -> String

Render the stable SQL-style output label for this projection.

Source

fn apply_value(&self, value: Value) -> Result<Value, QueryError>

Apply this projection to one already-loaded source value.

Implementors§