Struct clockwork_thread_program::state::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§fn deserialize(buf: &mut &[u8]) -> Result<ThreadResponse, Error>
 
fn deserialize(buf: &mut &[u8]) -> Result<ThreadResponse, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§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.
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
source§impl Default for ThreadResponse
 
impl Default for ThreadResponse
source§fn default() -> ThreadResponse
 
fn default() -> ThreadResponse
Returns the “default value” for a type. Read more