pub struct CreateAccount<'a, 'b> {
pub from: &'a AccountView,
pub to: &'a AccountView,
pub lamports: u64,
pub space: u64,
pub owner: &'b Address,
}Expand description
Builder for the system program’s CreateAccount instruction.
Fields§
§from: &'a AccountView§to: &'a AccountView§lamports: u64§space: u64§owner: &'b AddressImplementations§
Source§impl CreateAccount<'_, '_>
impl CreateAccount<'_, '_>
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> Freeze for CreateAccount<'a, 'b>
impl<'a, 'b> RefUnwindSafe for CreateAccount<'a, 'b>
impl<'a, 'b> Send for CreateAccount<'a, 'b>
impl<'a, 'b> Sync for CreateAccount<'a, 'b>
impl<'a, 'b> Unpin for CreateAccount<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CreateAccount<'a, 'b>
impl<'a, 'b> UnwindSafe for CreateAccount<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more