Struct clockwork_sdk::queue_program::accounts::InstructionData   
source · [−]pub struct InstructionData {
    pub program_id: Pubkey,
    pub accounts: Vec<AccountMetaData, Global>,
    pub data: Vec<u8, Global>,
}Expand description
The data needed execute an instruction on Solana.
Fields
program_id: PubkeyPubkey of the instruction processor that executes this instruction
accounts: Vec<AccountMetaData, Global>Metadata for what accounts should be passed to the instruction processor
data: Vec<u8, Global>Opaque data passed to the instruction processor
Trait Implementations
sourceimpl BorshDeserialize for InstructionDatawhere
    Pubkey: BorshDeserialize,
    Vec<AccountMetaData, Global>: BorshDeserialize,
    Vec<u8, Global>: BorshDeserialize,
 
impl BorshDeserialize for InstructionDatawhere
    Pubkey: BorshDeserialize,
    Vec<AccountMetaData, Global>: BorshDeserialize,
    Vec<u8, Global>: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<InstructionData, Error>
 
fn deserialize(buf: &mut &[u8]) -> Result<InstructionData, 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 BorshSchema for InstructionDatawhere
    Pubkey: BorshSchema,
    Vec<AccountMetaData, Global>: BorshSchema,
    Vec<u8, Global>: BorshSchema,
 
impl BorshSchema for InstructionDatawhere
    Pubkey: BorshSchema,
    Vec<AccountMetaData, Global>: BorshSchema,
    Vec<u8, Global>: BorshSchema,
sourcefn declaration() -> String
 
fn declaration() -> String
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
    definitions: &mut HashMap<String, Definition, RandomState>
)
 
fn add_definitions_recursively(
    definitions: &mut HashMap<String, Definition, RandomState>
)
Recursively, using DFS, add type definitions required for this type. For primitive types
this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
    declaration: String,
    definition: Definition,
    definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
    declaration: String,
    definition: Definition,
    definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for InstructionDatawhere
    Pubkey: BorshSerialize,
    Vec<AccountMetaData, Global>: BorshSerialize,
    Vec<u8, Global>: BorshSerialize,
 
impl BorshSerialize for InstructionDatawhere
    Pubkey: BorshSerialize,
    Vec<AccountMetaData, Global>: BorshSerialize,
    Vec<u8, Global>: BorshSerialize,
sourceimpl Clone for InstructionData
 
impl Clone for InstructionData
sourcefn clone(&self) -> InstructionData
 
fn clone(&self) -> InstructionData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for InstructionData
 
impl Debug for InstructionData
sourceimpl From<Instruction> for InstructionData
 
impl From<Instruction> for InstructionData
sourcefn from(instruction: Instruction) -> InstructionData
 
fn from(instruction: Instruction) -> InstructionData
Converts to this type from the input type.
sourceimpl Hash for InstructionData
 
impl Hash for InstructionData
sourceimpl PartialEq<InstructionData> for InstructionData
 
impl PartialEq<InstructionData> for InstructionData
sourcefn eq(&self, other: &InstructionData) -> bool
 
fn eq(&self, other: &InstructionData) -> bool
impl StructuralPartialEq for InstructionData
Auto Trait Implementations
impl RefUnwindSafe for InstructionData
impl Send for InstructionData
impl Sync for InstructionData
impl Unpin for InstructionData
impl UnwindSafe for InstructionData
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