pub struct FieldNumbers {
pub field: Ident,
pub numbers: Numbers,
pub skins: Vec<ElectionBackend>,
}Expand description
ONE FIELD’s numbers, and the skins that dress them — the ELECTION tier.
A list parallel to FieldEngines rather than a member of
Elected, and the reason is that BOTH KINDS elect: a vector declaration’s elections are
Elected values and a full-text declaration’s are bare idents
(searchable), so a per-field fact both kinds carry has no one struct
to sit inside. The engine list solved that same problem the same way, and one shape for
per-field facts is what keeps a reader from having to learn two.
Fields§
§field: IdentThe election these numbers are about.
numbers: NumbersWhat this field wrote — the BONES tier’s own words.
skins: Vec<ElectionBackend>graphql(<backend>(first = N)) ON THE FIELD — the SKIN tier, one entry per backend named.
Implementations§
Source§impl FieldNumbers
impl FieldNumbers
Sourcepub fn skin(&self, kind: GraphqlKind) -> Option<&ElectionBackend>
pub fn skin(&self, kind: GraphqlKind) -> Option<&ElectionBackend>
kind’s block on this field, or None where the field named that backend nowhere.