Struct spl_governance::state::proposal_transaction::InstructionData
source · [−]#[repr(C)]pub struct InstructionData {
pub program_id: Pubkey,
pub accounts: Vec<AccountMetaData>,
pub data: Vec<u8>,
}
Expand description
InstructionData wrapper. It can be removed once Borsh serialization for Instruction is supported in the SDK
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
sourceimpl BorshDeserialize for InstructionData where
Pubkey: BorshDeserialize,
Vec<AccountMetaData>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for InstructionData where
Pubkey: BorshDeserialize,
Vec<AccountMetaData>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
sourceimpl BorshSchema for InstructionData where
Pubkey: BorshSchema,
Vec<AccountMetaData>: BorshSchema,
Vec<u8>: BorshSchema,
impl BorshSchema for InstructionData where
Pubkey: BorshSchema,
Vec<AccountMetaData>: BorshSchema,
Vec<u8>: BorshSchema,
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn 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
sourcefn 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 InstructionData where
Pubkey: BorshSerialize,
Vec<AccountMetaData>: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for InstructionData where
Pubkey: BorshSerialize,
Vec<AccountMetaData>: BorshSerialize,
Vec<u8>: 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 more
sourceimpl Debug for InstructionData
impl Debug for InstructionData
sourceimpl From<&'_ InstructionData> for Instruction
impl From<&'_ InstructionData> for Instruction
sourcefn from(instruction: &InstructionData) -> Self
fn from(instruction: &InstructionData) -> Self
Performs the conversion.
sourceimpl From<Instruction> for InstructionData
impl From<Instruction> for InstructionData
sourcefn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Performs the conversion.
sourceimpl PartialEq<InstructionData> for InstructionData
impl PartialEq<InstructionData> for InstructionData
sourcefn eq(&self, other: &InstructionData) -> bool
fn eq(&self, other: &InstructionData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstructionData) -> bool
fn ne(&self, other: &InstructionData) -> bool
This method tests for !=
.
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
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more