pub struct DocumentDefinition {
pub name: String,
pub target: String,
pub template: String,
pub provenance: String,
pub effects: Option<EffectRow>,
pub blocks: Vec<DocBlock>,
pub loc: Loc,
pub leading_trivia: Vec<Trivia>,
pub trailing_trivia: Vec<Trivia>,
}Expand description
v2.53.0 — a declarative document. target: picks the serializer
(docx|pptx|xlsx); provenance: picks how the provenance part is emitted
(none|embedded|signed); template: names an enterprise template; effects:
carries the propagated sensitive:/legal: basis. blocks is the body —
a closed-catalog tree of DocBlocks whose vocabulary the checker validates
against target (a slide in a docx is axon-T9xx, the design decision).
Fields§
§name: String§target: Stringdocx | pptx | xlsx — closed catalog (axon-T910).
template: StringOptional enterprise template reference (.dotx/.potx/.xltx, v2.53.0).
provenance: Stringnone | embedded | signed — how the provenance part is emitted
. Empty ⇒ none. Closed catalog (axon-T911).
effects: Option<EffectRow>The propagated effect row — io, storage (blob sink), and any
sensitive:<cat>/legal:<basis> the bound data carries.
blocks: Vec<DocBlock>The document body — the closed-catalog block tree.
loc: Loc§leading_trivia: Vec<Trivia>§trailing_trivia: Vec<Trivia>