pub struct ColumnExtension {
pub source: ExtensionSource,
pub variants: Vec<LitStr>,
pub any_of: Vec<LitStr>,
pub with: Option<Path>,
}Expand description
A suffix decided PER ENTRY — the block form, in all four of its shapes.
Fields§
§source: ExtensionSourceThe column the suffix is decided by, and which road it is on.
variants: Vec<LitStr>variants = ["app::Format::Png", …] — the INPUT fence, as FULL PATHS in string literals.
Full paths for the campaign’s standing refer-quoting convention, and they buy a check nothing
else could make: the expansion prefix-checks each against from’s type, and rustc then verifies
the variant EXISTS by resolving an emitted reference to it — so a misspelled variant is a
compile error at the string that named it rather than a value silently outside the fence.
EMPTY where the word was not written, which on the enum road means the FULL set.
any_of: Vec<LitStr>any_of = ["png", "jpg"] — the OUTPUT fence, as suffix strings.
REQUIRED on the string road and optional on the enum road, for the reason the module note gives. Empty means the word was not written.
with: Option<Path>with = "app::suffix_of" — the author’s own render, fn(&ColType) -> suffix.
The COLUMN VALUE and not the row, which is what makes ONE function serve both sides: the write lane has the upstream field and the read resolver has the entity’s column, and a hook over the value is spendable from either. A hook over the row would need two different rows and would be two functions pretending to be one.