Skip to main content

infer_view_spec

Function infer_view_spec 

Source
pub fn infer_view_spec(model: &str, columns: &[FieldMeta]) -> ViewSpec
Expand description

Produce a reasonable ViewSpec from a model name and its columns.

Deterministic: same input always yields the same output. The rules err on the side of hiding rather than exposing, and only the first human-readable text field is promoted to Primary.