pub struct DeletePositionBundleBuilder { /* private fields */ }
Expand description
Instruction builder for DeletePositionBundle
.
§Accounts:
[writable]
position_bundle[writable]
position_bundle_mint[writable]
position_bundle_token_account[signer]
position_bundle_owner[writable]
receiver[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)
Implementations§
Source§impl DeletePositionBundleBuilder
impl DeletePositionBundleBuilder
pub fn new() -> Self
pub fn position_bundle(&mut self, position_bundle: Pubkey) -> &mut Self
pub fn position_bundle_mint( &mut self, position_bundle_mint: Pubkey, ) -> &mut Self
pub fn position_bundle_token_account( &mut self, position_bundle_token_account: Pubkey, ) -> &mut Self
pub fn position_bundle_owner( &mut self, position_bundle_owner: Pubkey, ) -> &mut Self
pub fn receiver(&mut self, receiver: Pubkey) -> &mut Self
Sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
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 DeletePositionBundleBuilder
impl Clone for DeletePositionBundleBuilder
Source§fn clone(&self) -> DeletePositionBundleBuilder
fn clone(&self) -> DeletePositionBundleBuilder
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 DeletePositionBundleBuilder
impl Debug for DeletePositionBundleBuilder
Source§impl Default for DeletePositionBundleBuilder
impl Default for DeletePositionBundleBuilder
Source§fn default() -> DeletePositionBundleBuilder
fn default() -> DeletePositionBundleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeletePositionBundleBuilder
impl RefUnwindSafe for DeletePositionBundleBuilder
impl Send for DeletePositionBundleBuilder
impl Sync for DeletePositionBundleBuilder
impl Unpin for DeletePositionBundleBuilder
impl UnwindSafe for DeletePositionBundleBuilder
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