Skip to main content

PromotePlan

Struct PromotePlan 

Source
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: EventId

The 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: EventPayload

The PromoteTranche payload apply_promote appends on a successful acknowledgment.

Trait Implementations§

Source§

impl Clone for PromotePlan

Source§

fn clone(&self) -> PromotePlan

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PromotePlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V