[][src]Enum solana_sdk::loader_instruction::LoaderInstruction

pub enum LoaderInstruction {
    Write {
        offset: u32,
        bytes: Vec<u8>,
    },
    Finalize,
}

Variants

Write

Write program data into an account

  • key[0] - the account to write into.

The transaction must be signed by key[0]

Fields of Write

offset: u32bytes: Vec<u8>
Finalize

Finalize an account loaded with program data for execution. The exact preparation steps is loader specific but on success the loader must set the executable bit of the Account

  • key[0] - the account to prepare for execution

The transaction must be signed by key[0]

Trait Implementations

impl PartialEq<LoaderInstruction> for LoaderInstruction[src]

impl Clone for LoaderInstruction[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for LoaderInstruction[src]

impl Debug for LoaderInstruction[src]

impl<'de> Deserialize<'de> for LoaderInstruction[src]

impl Serialize for LoaderInstruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]