[][src]Struct solana_budget_program::budget_expr::AccountConstraints

pub struct AccountConstraints {
    pub key: Pubkey,
    pub program_id: Pubkey,
    pub data_hash: Hash,
}

The account constraints a Condition would wait on. Note: ideally this would be function that accepts an Account and returns a bool, but we don't have a way to pass functions over the wire. To simulate higher order programming, create your own program that includes an instruction that sets account data to a boolean. Pass that account key and program_id here.

Fields

key: Pubkey

The account holder.

program_id: Pubkey

The program id that must own the account at key.

data_hash: Hash

The hash of the data in the account at key.

Trait Implementations

impl Clone for AccountConstraints[src]

impl Debug for AccountConstraints[src]

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

impl Eq for AccountConstraints[src]

impl PartialEq<AccountConstraints> for AccountConstraints[src]

impl Serialize for AccountConstraints[src]

impl StructuralEq for AccountConstraints[src]

impl StructuralPartialEq for AccountConstraints[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>,