Struct clockwork_sdk::CrankResponse
source · [−]pub struct CrankResponse {
pub kickoff_instruction: Option<InstructionData>,
pub next_instruction: Option<InstructionData>,
}Expand description
A response value target programs can return to update the queue.
Fields
kickoff_instruction: Option<InstructionData>The kickoff instruction to use on the next triggering of the queue. If none, the kickoff instruction remains unchanged.
next_instruction: Option<InstructionData>The next instruction to use on the next crank of the queue.
Trait Implementations
sourceimpl BorshDeserialize for CrankResponsewhere
Option<InstructionData>: BorshDeserialize,
impl BorshDeserialize for CrankResponsewhere
Option<InstructionData>: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<CrankResponse, Error>
fn deserialize(buf: &mut &[u8]) -> Result<CrankResponse, 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 CrankResponsewhere
Option<InstructionData>: BorshSerialize,
impl BorshSerialize for CrankResponsewhere
Option<InstructionData>: BorshSerialize,
sourceimpl Clone for CrankResponse
impl Clone for CrankResponse
sourcefn clone(&self) -> CrankResponse
fn clone(&self) -> CrankResponse
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CrankResponse
impl Debug for CrankResponse
sourceimpl Default for CrankResponse
impl Default for CrankResponse
sourcefn default() -> CrankResponse
fn default() -> CrankResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CrankResponse
impl Send for CrankResponse
impl Sync for CrankResponse
impl Unpin for CrankResponse
impl UnwindSafe for CrankResponse
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