Struct clockwork_utils::thread::ThreadResponse
source · pub struct ThreadResponse {
pub close_to: Option<Pubkey>,
pub dynamic_instruction: Option<SerializableInstruction>,
pub trigger: Option<Trigger>,
}
Expand description
A response value target programs can return to update the thread.
Fields§
§close_to: Option<Pubkey>
If set, the thread will automatically close and return lamports to the provided address. If dynamic_instruction is also set, close_to will take precedence and the dynamic instruction will not be executed.
dynamic_instruction: Option<SerializableInstruction>
A dynamic instruction to execute next. If close_to is also set, it will take precedence and the dynamic instruction will not be executed.
trigger: Option<Trigger>
Value to update the thread trigger to.
Trait Implementations§
source§impl BorshDeserialize for ThreadResponsewhere
Option<Pubkey>: BorshDeserialize,
Option<SerializableInstruction>: BorshDeserialize,
Option<Trigger>: BorshDeserialize,
impl BorshDeserialize for ThreadResponsewhere Option<Pubkey>: BorshDeserialize, Option<SerializableInstruction>: BorshDeserialize, Option<Trigger>: BorshDeserialize,
source§impl BorshSerialize for ThreadResponsewhere
Option<Pubkey>: BorshSerialize,
Option<SerializableInstruction>: BorshSerialize,
Option<Trigger>: BorshSerialize,
impl BorshSerialize for ThreadResponsewhere Option<Pubkey>: BorshSerialize, Option<SerializableInstruction>: BorshSerialize, Option<Trigger>: BorshSerialize,
source§impl Clone for ThreadResponse
impl Clone for ThreadResponse
source§fn clone(&self) -> ThreadResponse
fn clone(&self) -> ThreadResponse
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 ThreadResponse
impl Debug for ThreadResponse
Auto Trait Implementations§
impl RefUnwindSafe for ThreadResponse
impl Send for ThreadResponse
impl Sync for ThreadResponse
impl Unpin for ThreadResponse
impl UnwindSafe for ThreadResponse
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