Struct solana_budget_program::budget_expr::AccountConstraints [−][src]
pub struct AccountConstraints { pub key: Pubkey, pub program_id: Pubkey, pub data_hash: Hash, }
Expand description
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AccountConstraints
impl Send for AccountConstraints
impl Sync for AccountConstraints
impl Unpin for AccountConstraints
impl UnwindSafe for AccountConstraints
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self