Enum solana::budget::Condition [−][src]
A data type representing a Witness
that the payment plan is waiting on.
Variants
Timestamp(DateTime<Utc>, Pubkey)
Wait for a Timestamp
Witness
at or after the given DateTime
.
Signature(Pubkey)
Wait for a Signature
Witness
from Pubkey
.
Methods
impl Condition
[src]
impl Condition
pub fn is_satisfied(&self, witness: &Witness, from: &Pubkey) -> bool
[src]
pub fn is_satisfied(&self, witness: &Witness, from: &Pubkey) -> bool
Return true if the given Witness satisfies this Condition.
Trait Implementations
impl Debug for Condition
[src]
impl Debug for Condition
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 Condition
[src]
impl PartialEq for Condition
fn eq(&self, other: &Condition) -> bool
[src]
fn eq(&self, other: &Condition) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Condition) -> bool
[src]
fn ne(&self, other: &Condition) -> bool
This method tests for !=
.
impl Eq for Condition
[src]
impl Eq for Condition
impl Clone for Condition
[src]
impl Clone for Condition