Skip to main content

Crate sofie_values

Crate sofie_values 

Source
Expand description

Each value is parsed once at the boundary: deserializing input and decoding a row share it.

Structs§

Currency
Email
Debug masks it so it stays out of logs.
FormField
Input
Instant
Stored and written in UTC whatever offset it was read with.
Money
Part
A part with options is a select.
Secret
No Display and no Serialize, so no reply, log field or event payload can carry it.

Enums§

Constraint
A bound counts characters for text and compares numbers; the derive picks by Measured::TEXT.
Control
Search
How full-text search treats a value: words of Text are matched, an Exact value only whole, Number and Time by range, and a Skipped one never indexed.

Constants§

LATIN_COMBINING_ACCENTS
Decomposed accents, which a slug drops as it spells Latin letters in ASCII.

Traits§

FormFields
Present
SurfacesFromInner
A marker the derive implements; a value overriding a surface implements that trait instead.

Functions§

is_slug_character
A letter, digit or nonspacing or spacing mark (L*, N*, Mn, Mc) that lowercasing leaves as it is; anything else parts a slug’s words, unassigned, private-use and format characters too.
percent_text
Basis points as the percent a Percentage control holds, 12.50 for 1250.