Skip to main content

Module vista

Module vista 

Source
Expand description

Vista bridge for the REST API backend.

Construct a Vista from a typed Table<RestApi, E> via RestApi::vista_factory().from_table(...). The factory harvests schema metadata (columns, id field, references) and wraps the erased table in a RestApiTableShell that the universal Vista surface drives.

REST APIs are read-only at this stage — the shell advertises only can_count.

Re-exports§

pub use any_shell::AnyTableShell;
pub use factory::ModelResolver;
pub use factory::RestApiVistaFactory;
pub use source::RestApiTableShell;
pub use spec::ApiColumnExtras;
pub use spec::ApiReferenceExtras;
pub use spec::ApiTableBlock;
pub use spec::ApiTableExtras;
pub use spec::NoApiExtras;
pub use spec::RestApiVistaSpec;

Modules§

any_shell
Generic TableShell adapter over AnyTable.
factory
RestApiVistaFactory — typed-table entry point, VistaFactory trait impl, plus the YAML factory pipeline (build_from_spec, register_yaml, with_model_resolver).
source
RestApiTableShell — owns the typed Table<RestApi, E> behind a dyn TableLike so the original entity type stays attached for reference traversal.
spec
YAML-facing types for the REST-API Vista driver.