Enum solana::transaction::Plan [−][src]
pub enum Plan { Budget(Budget), }
The type of payment plan. Each item must implement the PaymentPlan trait.
Variants
Budget(Budget)
The builtin contract language Budget.
Trait Implementations
impl Debug for Plan
[src]
impl Debug for Plan
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Plan
[src]
impl PartialEq for Plan
fn eq(&self, other: &Plan) -> bool
[src]
fn eq(&self, other: &Plan) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Plan) -> bool
[src]
fn ne(&self, other: &Plan) -> bool
This method tests for !=
.
impl Eq for Plan
[src]
impl Eq for Plan
impl Clone for Plan
[src]
impl Clone for Plan
fn clone(&self) -> Plan
[src]
fn clone(&self) -> Plan
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PaymentPlan for Plan
[src]
impl PaymentPlan for Plan
fn final_payment(&self) -> Option<Payment>
[src]
fn final_payment(&self) -> Option<Payment>
Return Payment if the payment plan requires no additional Witnesses.
fn verify(&self, spendable_tokens: i64) -> bool
[src]
fn verify(&self, spendable_tokens: i64) -> bool
Return true if the plan spends exactly spendable_tokens
.
fn apply_witness(&mut self, witness: &Witness, from: &Pubkey)
[src]
fn apply_witness(&mut self, witness: &Witness, from: &Pubkey)
Apply a witness to the payment plan to see if the plan can be reduced. If so, modify the plan in-place. Read more