pub struct ClosePaymentBuilder { /* private fields */ }Expand description
Instruction builder for ClosePayment.
§Accounts:
[writable, signer]payer[writable]payment[signer]operator_authority[]operator[]merchant[]buyer[]merchant_operator_config[]mint[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl ClosePaymentBuilder
impl ClosePaymentBuilder
pub fn new() -> Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
Sourcepub fn merchant_operator_config(
&mut self,
merchant_operator_config: Pubkey,
) -> &mut Self
pub fn merchant_operator_config( &mut self, merchant_operator_config: Pubkey, ) -> &mut Self
Merchant Operator Config PDA
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']
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for ClosePaymentBuilder
impl Clone for ClosePaymentBuilder
Source§fn clone(&self) -> ClosePaymentBuilder
fn clone(&self) -> ClosePaymentBuilder
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 Debug for ClosePaymentBuilder
impl Debug for ClosePaymentBuilder
Source§impl Default for ClosePaymentBuilder
impl Default for ClosePaymentBuilder
Source§fn default() -> ClosePaymentBuilder
fn default() -> ClosePaymentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClosePaymentBuilder
impl RefUnwindSafe for ClosePaymentBuilder
impl Send for ClosePaymentBuilder
impl Sync for ClosePaymentBuilder
impl Unpin for ClosePaymentBuilder
impl UnwindSafe for ClosePaymentBuilder
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