Skip to main content

Module context_json

Module context_json 

Source
Expand description

Borrowed JSON contract for context owners. Ownership and allocation bills stay with the provider; observing a subtree grants no mutation capability.

Structs§

ContextSourceRef
Shared provider reference whose final release remains provider-controlled.
JsonSubtree
RedactedSubtree
Explicit source policy, applied before any output field selection.

Enums§

JsonKind

Traits§

ContextJson
Implementations expose a validated immutable tree using owner-local indices. Numbers are original JSON tokens. Object children carry decoded keys; array children carry no key. after is the previously returned child index.
ContextSource
Shared immutable provider. The callback runs synchronously under the provider’s read guard; no tree borrow or mutable owner can escape it.