Expand description
A resource’s public surface as data (tilo_actions::surface), read from
its declarations and stored shape. tilolang surface writes it to the
app’s surface.toml and compiled surface.json, and tilolang check compares it with the code, so a
rename or an incompatible storage change shows up in review, and it is
what the OS knows about an app that is not running and what another
language compiles its actions and types against.
Structs§
- Field
Surface - One stored field.
- Named
Type - A record or enum with a name, declared once in a surface’s types.
- Param
Surface - One parameter of a verb.
- Returns
Surface - What an action answers its caller with: its JSON Schema, and its type
(
FieldType) with the records and enums it names declared in the surface’s types. - Surface
- The public surface of one resource kind. See the module docs.
- Type
Case - A case of a named enum, with the fields its value carries.
- Type
Field - A field of a named record or of an enum case.
- TypeSet
- The named types a surface declares, gathered while its fields’ types are worked out: each declared once under one name, however often it is used.
- Verb
Surface - One verb.
Enums§
- Field
Type - A field’s or value’s type. See the module docs.
Constants§
- CONTENT_
VERBS - The verbs the framework writes under on every record kind, which no app’s action publishes:
a direct content edit (
TYPE_VERB). A storage migration is the store’s own verb (crate::stamp::Stamp::MIGRATE_VERB), which no surface declares. - TYPE_
VERB - The verb of a change that writes a record’s content directly, with no finer action: typing in a cell, a list splice made from the window. The framework stamps such a change with it.
Functions§
- effect_
verb - An effect’s declaration as a verb of the surface: its id, words, parameters and the value it answers with, each typed by its schema.
- effect_
verbs - An app’s effects as actions a caller of another language reads: every one
that only reads (
kind = "read") and that is offered on the app’s own resource, answering with the value it declares. An effect offered on a row of a declared type is one of them: the resource’s action, its parameter naming the row it acts on. What its window shows (a view’s zoom, its caret) is no action of the catalogue, and neither is one offered on an item of the resource’s collection: that is published on the item itself. - reading_
surface - The surface of a resource a service publishes outside any record (the
sound, the network, the battery): its fields are its reading
R, as the service serialises it, each read-only since only the service’s effects change it, and its verbs are the effectsEit offers on it. What a view of another language reads and presses of it, typed as the service declares it. - row_
surface - The surface of the row type
R, whose rows a reading carries with their addresses (crate::Handle): its kind, its name, and the effectsEit offers on each row, called on the row’s address. Its fields are the record the reading declares for it, so it lists none of its own. - surface_
of - The surface of
R, from its declarations and stored shape. - view_
effects - The ids of an app’s effects that show something in its window
(
#[effect(view)]): what its surface declares itSurface::shows.
Type Aliases§
- Field
Type Of - How a value’s
FieldTypeis worked out, declaring the records and enums it names: a type’sfield_type. - Flat
Types - A flattened parameter’s record fields and their published types, by name, as the code declares them.