pub enum PayeeSubject {
Payee,
}Expand description
The subject of a payee-side status answer.
One variant on purpose, and named for that one variant on purpose. A payee’s claim-side posture and a funder’s distributor-side posture are different answers with different money behind them, and this crate keeps them in different types rather than in two arms of one enum — so a payee-shaped result structurally cannot be built carrying a funder’s subject, whatever a responder gets wrong. A funder answer, if this crate ever grows one, gets its own type and its own literal.
The name carries that rule. A RewardSubject invites a Funder arm, and the
moment it has one the type guarantees nothing; PayeeSubject cannot absorb a
funder arm without a rename obviously wrong at the call site, which is the
point.
Variants§
Payee
The node answering is speaking as a payee — a mirror with a claim, not the party that funded the reserve.
Trait Implementations§
Source§impl Clone for PayeeSubject
impl Clone for PayeeSubject
Source§fn clone(&self) -> PayeeSubject
fn clone(&self) -> PayeeSubject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more