pub enum Value {
Show 17 variants
Text(String),
Int(i64),
Float(f64),
Bool(bool),
Actor {
identity: Actor,
name: String,
hue: Option<u8>,
picture: Option<String>,
},
Resource(String),
Icon(String),
Picture(Picture),
File(File),
Choice(String),
Rich(RichText),
None,
List(Vec<Value>),
Map(Vec<(Value, Value)>),
Action(Offered),
Case {
case: String,
fields: Vec<(String, Value)>,
},
Link {
reference: String,
title: String,
},
}Expand description
A value of a Type, as an instance of a component holds it.
Variants§
Text(String)
Int(i64)
Float(f64)
Bool(bool)
Actor
Who acted, what the workspace calls them, and the presence palette slot it paints them
in (None: derived from identity).
Fields
Resource(String)
A resource, by its id.
Icon(String)
An icon’s kebab-case name.
Picture(Picture)
A picture: its address (where a host reads its bytes) and what it says to assistive technology.
File(File)
A file a person handed the window: its name, its media type, how many bytes it is and
where they are (tilo-blob://<hash>), as the runtime’s File value holds it.
Choice(String)
A case of a choice, by name.
Rich(RichText)
Rich text, with how its references read for the person reading it.
None
An Option that holds nothing.
List(Vec<Value>)
A list, or a set’s values in the order they were given.
Map(Vec<(Value, Value)>)
A map’s entries, each key once, in key order.
Action(Offered)
An action offered to the person.
Case
A case of a Type::Cases set, with its fields’ values in the case’s order.
Link
A record a view names: what refers to it (the catalogue’s reference, tilo_reference),
and how it reads for the person now (its title, or the phrase for one they cannot read).