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
§Fase 99.b — 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, D99.6).
Fields§
§name: String§target: Stringdocx | pptx | xlsx — closed catalog (axon-T910).
template: StringOptional enterprise template reference (.dotx/.potx/.xltx, §99.g).
provenance: Stringnone | embedded | signed — how the provenance part is emitted
(D99.2). 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 (D99.4).
blocks: Vec<DocBlock>The document body — the closed-catalog block tree.
loc: Loc§leading_trivia: Vec<Trivia>§trailing_trivia: Vec<Trivia>Trait Implementations§
Source§impl Debug for DocumentDefinition
impl Debug for DocumentDefinition
Source§impl Default for DocumentDefinition
impl Default for DocumentDefinition
Source§fn default() -> DocumentDefinition
fn default() -> DocumentDefinition
Auto Trait Implementations§
impl Freeze for DocumentDefinition
impl RefUnwindSafe for DocumentDefinition
impl Send for DocumentDefinition
impl Sync for DocumentDefinition
impl Unpin for DocumentDefinition
impl UnsafeUnpin for DocumentDefinition
impl UnwindSafe for DocumentDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more