pub struct FrameworkMarker {
pub label: Label,
pub element: Option<Label>,
}Expand description
The payload of Marker::Framework: one of the framework’s own markers, written as the bare
word it is short for, and — where the word names a COLLECTION — the element’s own word inside
it.
FrameworkMarker rather than the variant’s own name, which would read as a framework rather
than as a marker. Fields are pub and constructed by literal, which is what every model type in
this crate carries — and ingraph-derive builds one of these from a parsed label, so a
crate-private constructor would not reach.
Fields§
§label: LabelThe word at the FIELD’s own level, which decides the field’s marker.
element: Option<Label>The ELEMENT’s word, when the label named a collection: list(string)’s string.
One level and no more, and the grammar is what makes that total: a collection whose element is itself a collection is refused at the declaration, and an element-level custom marker is reserved — so an element is a framework WORD or the label named no element at all.