pub struct PromotePlan {
pub target: EventId,
pub terms: Vec<ConsentTerm>,
pub advisory_lines: Vec<String>,
pub gift_only_years: BTreeSet<i32>,
pub post_consent_note: Option<String>,
pub payload: EventPayload,
}Expand description
Everything computed BEFORE the filer types the acknowledgment phrase (the PromoteTranche decision
id, target, is not yet known — it is assigned at apply_promote’s append_decision). ★ I-1: the
three ordered fields (advisory_lines, gift_only_years, post_consent_note) let render_consent
reproduce the shipped verb’s advisory → consent → note byte order — do NOT collapse them into one
Vec or pre-render gift_only_years into a string.
Fields§
§target: EventIdThe DeclareTranche decision this promotes (BG-D1) — the PromoteTranche.target field.
terms: Vec<ConsentTerm>BG-D6 consent_terms output — ALSO snapshotted verbatim onto payload’s
Acknowledgment.shown_terms (the §6664(c) good-faith artifact).
advisory_lines: Vec<String>The PRE-consent synthetic-promote advisory lines (promote.rs:443, for line in &advisory).
gift_only_years: BTreeSet<i32>T9 handoff: an INPUT to the shipped render_consent(terms, gift_only_years)
(promote.rs:333/:453) — NOT a pre-rendered string.
post_consent_note: Option<String>wide_window_note, printed AFTER the consent screen (promote.rs:454).
payload: EventPayloadThe PromoteTranche payload apply_promote appends on a successful acknowledgment.
Trait Implementations§
Source§impl Clone for PromotePlan
impl Clone for PromotePlan
Source§fn clone(&self) -> PromotePlan
fn clone(&self) -> PromotePlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more