decode_construction.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.7/decode_construction.bend as Decode_construction
7 imports
import Base import ordinary_declaration.bend as Identity import persistence_declaration.bend as Decl import decode_data.bend as D import decode.bend as Decode import bundle_construction.bend as Build import capabilities.bend as Cap
Types
type Factory source · line 11 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> Data
A retained nominal declaration supplies admission. The schema author provides an actual reversible constructor, not an implicit inverse for arbitrary Type.
Factory@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @inputCodec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> Factory<S, I, P, identity, project, incoming, build>
type Error source · line 32 · raw
@Custom:Data -> Data
Custom constructors may fail with any Data error. Keep decoder and constructor errors distinct rather than coercing a host/business error into a codec path.
Validation@Custom:Data -> @error:0x7e321819d0ff210531780719c7674cef/decode_data.Error -> Error<Custom>
Custom constructors may fail with any Data error. Keep decoder and constructor errors distinct rather than coercing a host/business error into a codec path.
Constructor@Custom:Data -> @error:Custom -> Error<Custom>
Custom constructors may fail with any Data error. Keep decoder and constructor errors distinct rather than coercing a host/business error into a codec path.
type FallibleFactory source · line 33 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> Data
FallibleFactory@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @inputCodec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> FallibleFactory<S, I, P, Custom, identity, project, incoming, build>
Templates
template factory source · line 13 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @+declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> Factory<S, I, P, identity, project, incoming, build>
template factory_with_input_codec source · line 14 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @inputCodec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> Factory<S, I, P, identity, project, incoming, build>
template checked source · line 15 · raw
@-I:Type -> @-P:Type -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @receipt:0x7e321819d0ff210531780719c7674cef/decode_data.Receipt<I> -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>
template construct source · line 19 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @factory:Factory<S, I, P, identity, project, incoming, build> -> @input:I -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>
template request source · line 22 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @+factory:Factory<S, I, P, identity, project, incoming, build> -> @input:I -> Pair(Factory<S, I, P, identity, project, incoming, build>, 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>)
template grant source · line 25 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> 0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<Factory<S, I, P, identity, project, incoming, build>, I, 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>>
Constructed output or exact refused raw owner crosses only an owned grant.
template invoke source · line 27 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>) -> @-A:Type -> @-Out:Type -> @-body:(@-H:Type -> @-cap:0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<H, I, 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, 0x7e321819d0ff210531780719c7674cef/decode_data.Error>> -> @_:A -> @_:H -> Pair(H, Out)) -> @factory:Factory<S, I, P, identity, project, incoming, build> -> @args:A -> Pair(Factory<S, I, P, identity, project, incoming, build>, Out)
template fallible_factory source · line 35 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> @+declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> FallibleFactory<S, I, P, Custom, identity, project, incoming, build>
template fallible_factory_with_input_codec source · line 36 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> @declaration:0x7e321819d0ff210531780719c7674cef/persistence_declaration.Constructed<S, P, identity, project> -> @inputCodec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> FallibleFactory<S, I, P, Custom, identity, project, incoming, build>
template custom_result source · line 37 · raw
@-I:Type -> @-P:Type -> @-Custom:Data -> @result:0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom> -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Error<Custom>>
template fallible_checked source · line 41 · raw
@-I:Type -> @-P:Type -> @-Custom:Data -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> @receipt:0x7e321819d0ff210531780719c7674cef/decode_data.Receipt<I> -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Error<Custom>>
template fallible_construct source · line 45 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> @factory:FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @input:I -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Error<Custom>>
template fallible_request source · line 48 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> @+factory:FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @input:I -> Pair(FallibleFactory<S, I, P, Custom, identity, project, incoming, build>, 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Error<Custom>>)
template fallible_grant source · line 50 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @-build:(@_:I -> @_:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Custom>) -> 0x7e321819d0ff210531780719c7674cef/capabilities.OwnedRequest<FallibleFactory<S, I, P, Custom, identity, project, incoming, build>, I, 0x7e321819d0ff210531780719c7674cef/bundle_construction.Construction<I, P, Error<Custom>>>