Expand description
The event which allowed a particular transaction thread to be triggered.
Variants
Account
Fields
data_hash: u64
The account’s data hash.
A running hash of the observed account data.
Cron
Fields
started_at: i64
The threshold moment the schedule was waiting for.
A cron execution context.
Immediate
The immediate trigger context.
Trait Implementations
sourceimpl BorshDeserialize for TriggerContextwhere
u64: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for TriggerContextwhere
u64: BorshDeserialize,
i64: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
sourceimpl BorshSerialize for TriggerContextwhere
u64: BorshSerialize,
i64: BorshSerialize,
impl BorshSerialize for TriggerContextwhere
u64: BorshSerialize,
i64: BorshSerialize,
sourceimpl Clone for TriggerContext
impl Clone for TriggerContext
sourcefn clone(&self) -> TriggerContext
fn clone(&self) -> TriggerContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TriggerContext
impl Debug for TriggerContext
sourceimpl Hash for TriggerContext
impl Hash for TriggerContext
sourceimpl PartialEq<TriggerContext> for TriggerContext
impl PartialEq<TriggerContext> for TriggerContext
sourcefn eq(&self, other: &TriggerContext) -> bool
fn eq(&self, other: &TriggerContext) -> bool
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more