pub struct CloseEscrowAccountBuilder { /* private fields */ }
Expand description
Instruction builder.
Implementations§
source§impl CloseEscrowAccountBuilder
impl CloseEscrowAccountBuilder
pub fn new() -> Self
sourcepub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
Token account
sourcepub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
Wallet paying for the transaction and new account
sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
Instructions sysvar account
pub fn add_remaining_account( &mut self, account: InstructionAccount ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccount] ) -> &mut Self
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for CloseEscrowAccountBuilder
impl Default for CloseEscrowAccountBuilder
source§fn default() -> CloseEscrowAccountBuilder
fn default() -> CloseEscrowAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CloseEscrowAccountBuilder
impl Send for CloseEscrowAccountBuilder
impl Sync for CloseEscrowAccountBuilder
impl Unpin for CloseEscrowAccountBuilder
impl UnwindSafe for CloseEscrowAccountBuilder
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