Skip to main content

filter_face

Function filter_face 

Source
pub fn filter_face(
    face: &InputFace<'_>,
    fields: &[FilterField],
    positions: &[RelationPosition],
) -> TokenStream
Expand description

The FILTER as an ordinary input object: one NULLABLE field per column, each carrying that column’s own filter, and any number of them supplied.

§Option<F> at the field and NOT Nullable<F>

Two different absences, and the type says which. Option at this position is the client wrote no predicate for this column — an unwritten field narrows nothing — where Nullable<F> is the column’s own NULL state and lives inside F for a nullable column, carrying isNull. The struct’s member is Option<F> for exactly that reason and this face parses what the member holds.