Struct cronos_program::state::task::InstructionData   
source · [−]pub struct InstructionData {
    pub program_id: Pubkey,
    pub accounts: Vec<AccountMetaData>,
    pub data: Vec<u8>,
}Fields
program_id: PubkeyPubkey 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 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 Display for InstructionData
 
impl Display 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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more