pub struct PutOutcome {
pub record: HaysonRecord,
pub warnings: Vec<BrokenLink>,
}Expand description
The result of Table::put_with_warnings/Table::patch_with_warnings — the written record
plus diagnostics that do not block the write (currently only broken markdown links found while
Table::link_parsing is Eager; empty for a Lazy table, which surfaces them only on
request via Table::broken_links_of). Table::put/Table::patch stay untouched and
keep returning a bare HaysonRecord on a separate method, rather than changing their own
signature, so no existing caller has to start handling warnings it never asked for.
warnings carries broken links and nothing else: the two other diagnostics this table answers
for — a dropped undeclared field and a write touching a deprecated one — have channels of
their own (Table::dropped_field_warnings, Table::deprecated_field_warnings) because
neither can be recomputed from the stored record. That is why this field could take the
structured BrokenLink rather than staying a bag of formatted strings.
Fields§
§record: HaysonRecord§warnings: Vec<BrokenLink>