Skip to main content

Module source

Module source 

Source
Expand description

RestApiTableShell — owns the typed Table<RestApi, E> behind a dyn TableLike so the original entity type stays attached for reference traversal.

RestApi already speaks ciborium::Value natively (the HTTP body is converted at the fetch boundary), so the shell is a pass-through with no per-record translation.

YAML-declared references are carried separately (yaml_refs) because Table::with_many / with_one require compile-time-known build-target closures that YAML can’t synthesise. At traversal time the shell consults the resolver (a factory-wide callback that maps model names to child Vistas) and threads a DeferredFn through the child so the parent’s id resolves only when the child actually fetches.

Structs§

RestApiTableShell