snapshot_gate.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.2/snapshot_gate.bend as Snapshot_gate
3 imports
import Base import ./ordinary_declaration.bend as C import ./decode_data.bend as D
Types
type Gate source · line 7 · raw
@-S:Data -> @-P:Type -> @-declaration:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> Type
Trusted schema-author witness, not an unforgeable public constructor. Decoder describes untrusted DATA validation; no implicit Raw -> P inverse.
Transient@-S:Data -> @-P:Type -> @-declaration:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> Gate<S, P, declaration>
Persisted@-S:Data -> @-P:Type -> @-declaration:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @codec:0xb2b0f04555daca474f0f77d0966945c9/decode_data.Codec -> @project:(@_:P -> Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw)) -> Gate<S, P, declaration>
type Field source · line 10 · raw
Data
Omitted@name:String -> Field
Saved@name:String -> @value:0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw -> Field
Templates
template transient source · line 13 · raw
@-S:Data -> @-P:Type -> @-declaration:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> Gate<S, P, declaration>
template persisted source · line 15 · raw
@-S:Data -> @-P:Type -> @-declaration:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @codec:0xb2b0f04555daca474f0f77d0966945c9/decode_data.Codec -> @project:(@_:P -> Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw)) -> Gate<S, P, declaration>
template projected source · line 17 · raw
@-P:Type -> @name:String -> @observed:Pair(P, 0xb2b0f04555daca474f0f77d0966945c9/decode_data.Raw) -> Pair(P, Field)
template export_owner source · line 23 · raw
@-S:Data -> @-P:Type -> @-declaration:0xb2b0f04555daca474f0f77d0966945c9/ordinary_declaration.Declaration<S, P> -> @gate:Gate<S, P, declaration> -> @owner:P -> Pair(P, Field)
Static eligibility mirrors TS Gate: export itself does not run its decoder. This low-level operation consumes Gate; snapshot-leaf reconstructs it from the retained ordinary declaration for repeated owner-preserving saves.