def bind
import bendvy-ecs-core@0.1.0.3/execution_relation_provider.bend as ExecutionRelationProviderimport Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout
import bendvy-ecs-core@0.1.0.3/execution_resource_policy.bend as Policy
import bendvy-ecs-core@0.1.0.3/execution_relation_context.bend as Context
import bendvy-ecs-core@0.1.0.3/execution_relation_store.bend as Store
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T
13# Authority is derived from the actual full schema and exact selected leaf, not
14# from a key lookup or a policy tag interpreted as a payload type.
15def bind(~S:Data,~WR:Type,~resources:Layout.Layout,~same:{WR == Layout.resources(~S,resources) : Type},~route:Layout.Route,~valid:{Layout.grant_valid(~resources,~route) == True{} : Bool},~descriptor:T.Descriptor<S>,~payload:{Layout.payload(resources,route) == Store.Store<S,descriptor> : Type},~view:{Layout.view(resources,route) == Store.View<S,descriptor> : Data},~protected:{Layout.policy(resources,route) == Policy.ProtectedRelation{S,descriptor} : Policy.Policy},context:Context.Context<S,WR,resources,same>) -> Context.Binding<S,WR,resources,same,route,descriptor,payload,view,protected>:
16 Context.Binding{context}
Uses (14)
Used by (0)
No other definition uses this definition.