pub enum TriggerContext {
Account {
data_hash: u64,
},
Cron {
started_at: i64,
},
Now,
Slot {
started_at: u64,
},
Epoch {
started_at: u64,
},
Timestamp {
started_at: i64,
},
Pyth {
price: i64,
},
}
Expand description
The event which allowed a particular transaction thread to be triggered.
Variants§
Account
A running hash of the observed account data.
Cron
A cron execution context.
Now
The trigger context for threads with a “now” trigger.
Slot
The trigger context for threads with a “slot” trigger.
Epoch
The trigger context for threads with an “epoch” trigger.
Timestamp
The trigger context for threads with an “timestamp” trigger.
Pyth
The trigger context for threads with a “pyth” trigger.
Trait Implementations§
source§impl BorshDeserialize for TriggerContextwhere
u64: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for TriggerContextwhere u64: BorshDeserialize, i64: BorshDeserialize,
source§impl BorshSerialize for TriggerContextwhere
u64: BorshSerialize,
i64: BorshSerialize,
impl BorshSerialize for TriggerContextwhere u64: BorshSerialize, i64: BorshSerialize,
source§impl Clone for TriggerContext
impl Clone for TriggerContext
source§fn clone(&self) -> TriggerContext
fn clone(&self) -> TriggerContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TriggerContext
impl Debug for TriggerContext
source§impl PartialEq<TriggerContext> for TriggerContext
impl PartialEq<TriggerContext> for TriggerContext
source§fn eq(&self, other: &TriggerContext) -> bool
fn eq(&self, other: &TriggerContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TriggerContext
impl Eq for TriggerContext
impl StructuralEq for TriggerContext
impl StructuralPartialEq for TriggerContext
Auto Trait Implementations§
impl RefUnwindSafe for TriggerContext
impl Send for TriggerContext
impl Sync for TriggerContext
impl Unpin for TriggerContext
impl UnwindSafe for TriggerContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more