Enum solana_budget_program::budget_expr::Condition [−][src]
pub enum Condition { Timestamp(DateTime<Utc>, Pubkey), Signature(Pubkey), AccountData(AccountConstraints), }
Expand description
A data type representing a Witness
that the payment plan is waiting on.
Variants
Wait for a Timestamp
Witness
at or after the given DateTime
.
Wait for a Signature
Witness
from Pubkey
.
Wait for the account with the given constraints.
Tuple Fields of AccountData
Implementations
Return true if the given Witness satisfies this Condition.
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
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl UnwindSafe for Condition
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