#[non_exhaustive]pub struct Migrated {
pub def: WorkflowDef,
pub json: Value,
pub rewrites: Vec<Rewrite>,
pub issues: Vec<Issue>,
}Expand description
A v3 definition in the v4 spelling: what migrate_v3 returns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.def: WorkflowDefThe definition, parsed: what json parses to with the
reader off, so a host loading it need not parse it again. A host that
wants the migrated definition’s text serializes this
(serde_json::to_string(&migrated.def)), which is why the structured
form below is a Value and not a String: it keeps the definition’s
key order, is inspectable without a re-parse, and is exactly what this
field serializes to.
json: ValueThe definition in the v4 spelling, its keys in the definition’s
order: serde_json::to_value(&def), usable on its own without a
WorkflowDef. See def for the text contract.
rewrites: Vec<Rewrite>Each v3 spelling rewritten, in document order.
issues: Vec<Issue>Every issue the definition has, none Rejected: the rewrites’ own
V3_SPELLINGs among them.