Skip to main content

Module card_fill

Module card_fill 

Source
Expand description

What a whole-card fill puts in each field of a form (docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md §6).

The host says what a field is (its slot) and how it takes text (a choice, a length, a placeholder, a pattern); this turns the card’s parts into the text that field takes: an expiry as MM/YY, MM/YYYY or MMYY, a month and a year to choose or type, a number grouped or plain, a code that is left alone when the field is shorter than it. Pure functions: the values come in and go out as Zeroizing text, and no reason a part is left empty ever carries one.

Structs§

FormField
What the host reports about a field it matched to a card slot.

Enums§

Shaped
What goes in a field.

Functions§

part_name
What the person reads for a slot’s part in the answer and the approval: names only.
part_of_slot
The card part a slot takes, in the card’s own names.
shape
The text for one field, from the card’s parts.