Skip to main content

render_consent

Function render_consent 

Source
pub fn render_consent(plan: &PromotePlan) -> String
Expand description

Re-emit the shipped verb’s ordered filer-visible text: advisory_lines → the shipped render_consent(&plan.terms, &plan.gift_only_years) (cmd::promote) → post_consent_note — ★ I-1: byte-identical to promote.rs:443-455 when the RESULT is printed via a single println!("{}", render_consent(&plan)) (the shipped verb instead used three separate println! calls; a single combined string reproduces the exact same stdout bytes because println! always adds exactly one trailing \n). Do NOT collapse this into plan.terms/plan.gift_only_years alone — the pre-advisory must land BEFORE the consent screen and the note AFTER it.