Struct clockwork_utils::InstructionData
source · pub struct InstructionData {
pub program_id: Pubkey,
pub accounts: Vec<AccountMetaData>,
pub data: Vec<u8>,
}
Expand description
The data needed execute an instruction on Solana.
Fields§
§program_id: Pubkey
Pubkey of the instruction processor that executes this instruction
accounts: Vec<AccountMetaData>
Metadata for what accounts should be passed to the instruction processor
data: Vec<u8>
Opaque data passed to the instruction processor
Trait Implementations§
source§impl BorshDeserialize for InstructionDatawhere
Pubkey: BorshDeserialize,
Vec<AccountMetaData>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for InstructionDatawhere
Pubkey: BorshDeserialize,
Vec<AccountMetaData>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
source§impl BorshSchema for InstructionDatawhere
Pubkey: BorshSchema,
Vec<AccountMetaData>: BorshSchema,
Vec<u8>: BorshSchema,
impl BorshSchema for InstructionDatawhere
Pubkey: BorshSchema,
Vec<AccountMetaData>: BorshSchema,
Vec<u8>: BorshSchema,
source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
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
source§impl BorshSerialize for InstructionDatawhere
Pubkey: BorshSerialize,
Vec<AccountMetaData>: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for InstructionDatawhere
Pubkey: BorshSerialize,
Vec<AccountMetaData>: BorshSerialize,
Vec<u8>: BorshSerialize,
source§impl Clone for InstructionData
impl Clone for InstructionData
source§fn clone(&self) -> InstructionData
fn clone(&self) -> InstructionData
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 InstructionData
impl Debug for InstructionData
source§impl From<&InstructionData> for Instruction
impl From<&InstructionData> for Instruction
source§fn from(instruction: &InstructionData) -> Self
fn from(instruction: &InstructionData) -> Self
Converts to this type from the input type.