Skip to main content

render_model

Function render_model 

Source
pub fn render_model(
    rules: &[ApprovalRule],
    approver_sets: &ApproverSets,
) -> Result<(), Box<dyn Error>>
Expand description

Print the declarative model — the rules and the sets they draw on.

Shared with the offline vta approvals list break-glass, which reads the same row straight from fjall when the wire path is unreachable. One renderer on purpose: an operator diagnosing a lockout is comparing what the offline command prints against what they remember pnm approvals list printing, and two implementations of “what does this VTA require” would eventually disagree at exactly the moment that comparison matters most.