Enum solana_budget_program::budget_expr::Condition [−][src]
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
Wait for a Timestamp Witness at or after the given DateTime.
Wait for a Signature Witness from Pubkey.
AccountData(AccountConstraints)Wait for the account with the given constraints.
Implementations
impl Condition[src]
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<'de> Deserialize<'de> for Condition[src]
impl<'de> Deserialize<'de> for Condition[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl StructuralEq for Condition[src]
impl StructuralEq for Condition[src]impl StructuralPartialEq for Condition[src]
impl StructuralPartialEq for Condition[src]Auto Trait Implementations
impl RefUnwindSafe for Condition
impl RefUnwindSafe for Conditionimpl UnwindSafe for Condition
impl UnwindSafe for ConditionBlanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized, pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized, pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for Tpub default fn example() -> T
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,