pub struct CreateAccountWithSeed<'a, 'b> {
pub from: &'a AccountView<'a>,
pub to: &'a AccountView<'a>,
pub base: &'a AccountView<'a>,
pub seed: &'b [u8],
pub lamports: u64,
pub space: u64,
pub owner: &'b Address,
}Expand description
Builder for CreateAccountWithSeed.
to must equal create_with_seed(base.key, seed, owner). The base
account is a read-only signer used to derive the new address.
Fields§
§from: &'a AccountView<'a>§to: &'a AccountView<'a>§base: &'a AccountView<'a>§seed: &'b [u8]§lamports: u64§space: u64§owner: &'b AddressImplementations§
Source§impl CreateAccountWithSeed<'_, '_>
impl CreateAccountWithSeed<'_, '_>
Sourcepub fn invoke(&self) -> ProgramResult
pub fn invoke(&self) -> ProgramResult
Invoke (no PDA signers).
Sourcepub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
pub fn invoke_signed(&self, signers: &[Signer<'_, '_>]) -> ProgramResult
Invoke with PDA signers.
Auto Trait Implementations§
impl<'a, 'b> !Send for CreateAccountWithSeed<'a, 'b>
impl<'a, 'b> !Sync for CreateAccountWithSeed<'a, 'b>
impl<'a, 'b> Freeze for CreateAccountWithSeed<'a, 'b>
impl<'a, 'b> RefUnwindSafe for CreateAccountWithSeed<'a, 'b>
impl<'a, 'b> Unpin for CreateAccountWithSeed<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CreateAccountWithSeed<'a, 'b>
impl<'a, 'b> UnwindSafe for CreateAccountWithSeed<'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