Enum clockwork_sdk::queue_program::accounts::Trigger
source · [−]pub enum Trigger {
Account {
pubkey: Pubkey,
},
Cron {
schedule: String,
skippable: bool,
},
Immediate,
}Expand description
The triggering conditions of a queue.
Variants
Account
Allows a queue to subscribe to an accout and be cranked whenever the data of that account changes.
Cron
Fields
schedule: StringThe schedule in cron syntax. Value must be parsable by the clockwork_cron package.
skippable: boolBoolean value indicating whether triggering moments may be skipped if they are missed (e.g. due to network downtime). If false, any “missed” triggering moments will simply be cranked as soon as the network comes back online.
Allows a queue to be cranked according to a one-time or recurring schedule.
Immediate
Allows a queue to be cranked as soon as it’s created.
Trait Implementations
sourceimpl BorshDeserialize for Triggerwhere
Pubkey: BorshDeserialize,
String: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for Triggerwhere
Pubkey: BorshDeserialize,
String: BorshDeserialize,
bool: BorshDeserialize,
sourceimpl BorshSerialize for Triggerwhere
Pubkey: BorshSerialize,
String: BorshSerialize,
bool: BorshSerialize,
impl BorshSerialize for Triggerwhere
Pubkey: BorshSerialize,
String: BorshSerialize,
bool: BorshSerialize,
Auto Trait Implementations
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
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