pub struct InitializeMerchantBuilder { /* private fields */ }Expand description
Instruction builder for InitializeMerchant.
§Accounts:
[writable, signer]payer[signer]authority[writable]merchant[]settlement_wallet[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl InitializeMerchantBuilder
impl InitializeMerchantBuilder
pub fn new() -> Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn merchant(&mut self, merchant: Pubkey) -> &mut Self
pub fn settlement_wallet(&mut self, settlement_wallet: Pubkey) -> &mut Self
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']
pub fn bump(&mut self, bump: u8) -> &mut Self
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 InitializeMerchantBuilder
impl Clone for InitializeMerchantBuilder
Source§fn clone(&self) -> InitializeMerchantBuilder
fn clone(&self) -> InitializeMerchantBuilder
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 InitializeMerchantBuilder
impl Debug for InitializeMerchantBuilder
Source§impl Default for InitializeMerchantBuilder
impl Default for InitializeMerchantBuilder
Source§fn default() -> InitializeMerchantBuilder
fn default() -> InitializeMerchantBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitializeMerchantBuilder
impl RefUnwindSafe for InitializeMerchantBuilder
impl Send for InitializeMerchantBuilder
impl Sync for InitializeMerchantBuilder
impl Unpin for InitializeMerchantBuilder
impl UnwindSafe for InitializeMerchantBuilder
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