pub struct CreateAccountBuilder<'a> { /* private fields */ }Expand description
Instruction builder for creating a solana account.
§Accounts:
[signer]payer[writable]mint[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl<'a> CreateAccountBuilder<'a>
impl<'a> CreateAccountBuilder<'a>
pub fn build() -> Self
Sourcepub fn payer(&mut self, payer: &'a Pubkey) -> &mut Self
pub fn payer(&mut self, payer: &'a Pubkey) -> &mut Self
The account paying for the storage fees
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl<'a> Clone for CreateAccountBuilder<'a>
impl<'a> Clone for CreateAccountBuilder<'a>
Source§fn clone(&self) -> CreateAccountBuilder<'a>
fn clone(&self) -> CreateAccountBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CreateAccountBuilder<'a>
impl<'a> Debug for CreateAccountBuilder<'a>
Source§impl<'a> Default for CreateAccountBuilder<'a>
impl<'a> Default for CreateAccountBuilder<'a>
Source§fn default() -> CreateAccountBuilder<'a>
fn default() -> CreateAccountBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for CreateAccountBuilder<'a>
impl<'a> RefUnwindSafe for CreateAccountBuilder<'a>
impl<'a> Send for CreateAccountBuilder<'a>
impl<'a> Sync for CreateAccountBuilder<'a>
impl<'a> Unpin for CreateAccountBuilder<'a>
impl<'a> UnwindSafe for CreateAccountBuilder<'a>
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