~/bend-docscommunity

snapshot_gate.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/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:0x7e321819d0ff210531780719c7674cef/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.

type Field source · line 10 · raw

Data

Templates

template transient source · line 13 · raw

@-S:Data -> @-P:Type -> @-declaration:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> Gate<S, P, declaration>

template persisted source · line 15 · raw

@-S:Data -> @-P:Type -> @-declaration:0x7e321819d0ff210531780719c7674cef/ordinary_declaration.Declaration<S, P> -> @codec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> @project:(@_:P -> Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> Gate<S, P, declaration>

template projected source · line 17 · raw

@-P:Type -> @name:String -> @observed:Pair(P, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw) -> Pair(P, Field)

template export_owner source · line 23 · raw

@-S:Data -> @-P:Type -> @-declaration:0x7e321819d0ff210531780719c7674cef/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.