[−][src]Enum solana_sdk::system_instruction::SystemInstruction
Variants
CreateAccount
Create a new account
- Transaction::keys[0] - source
- Transaction::keys[1] - new account key
- lamports - number of lamports to transfer to the new account
- space - memory to allocate if greater then zero
- program_id - the program id of the new account
Fields of CreateAccount
Assign
Assign account to a program
- Transaction::keys[0] - account to assign
Fields of Assign
program_id: Pubkey
Move
Move lamports
- Transaction::keys[0] - source
- Transaction::keys[1] - destination
Fields of Move
lamports: u64
Methods
impl SystemInstruction
[src]
pub fn new_program_account(
from_id: &Pubkey,
to_id: &Pubkey,
lamports: u64,
space: u64,
program_id: &Pubkey
) -> BuilderInstruction
[src]
from_id: &Pubkey,
to_id: &Pubkey,
lamports: u64,
space: u64,
program_id: &Pubkey
) -> BuilderInstruction
pub fn new_move(
from_id: &Pubkey,
to_id: &Pubkey,
lamports: u64
) -> BuilderInstruction
[src]
from_id: &Pubkey,
to_id: &Pubkey,
lamports: u64
) -> BuilderInstruction
Trait Implementations
impl PartialEq<SystemInstruction> for SystemInstruction
[src]
fn eq(&self, other: &SystemInstruction) -> bool
[src]
fn ne(&self, other: &SystemInstruction) -> bool
[src]
impl Clone for SystemInstruction
[src]
fn clone(&self) -> SystemInstruction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SystemInstruction
[src]
impl<'de> Deserialize<'de> for SystemInstruction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SystemInstruction
[src]
Auto Trait Implementations
impl Send for SystemInstruction
impl Sync for SystemInstruction
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,