[][src]Enum solana_budget_program::budget_expr::Condition

pub enum Condition {
    Timestamp(DateTime<Utc>, Pubkey),
    Signature(Pubkey),
    AccountData(AccountConstraints),
}

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.

AccountData(AccountConstraints)

Wait for the account with the given constraints.

Methods

impl Condition[src]

pub fn is_satisfied(&self, witness: &Witness, from: &Pubkey) -> bool[src]

Return true if the given Witness satisfies this Condition.

Trait Implementations

impl Clone for Condition[src]

impl Debug for Condition[src]

impl<'de> Deserialize<'de> for Condition[src]

impl Eq for Condition[src]

impl PartialEq<Condition> for Condition[src]

impl Serialize for Condition[src]

impl StructuralEq for Condition[src]

impl StructuralPartialEq for Condition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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