Struct clockwork_sdk::state::ThreadResponse
source · pub struct ThreadResponse {
pub kickoff_instruction: Option<InstructionData>,
pub next_instruction: Option<InstructionData>,
}Expand description
A response value target programs can return to update the thread.
Fields§
§kickoff_instruction: Option<InstructionData>The kickoff instruction to use on the next triggering of the thread. If none, the kickoff instruction remains unchanged.
next_instruction: Option<InstructionData>The next instruction to use on the next execution of the thread.
Trait Implementations§
source§impl BorshDeserialize for ThreadResponsewhere
Option<InstructionData>: BorshDeserialize,
impl BorshDeserialize for ThreadResponsewhere
Option<InstructionData>: 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. 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.
source§impl BorshSerialize for ThreadResponsewhere
Option<InstructionData>: BorshSerialize,
impl BorshSerialize for ThreadResponsewhere
Option<InstructionData>: 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