pub struct InitializePositionBundleWithMetadataBuilder { /* private fields */ }
Expand description
Instruction builder for InitializePositionBundleWithMetadata
.
§Accounts:
[writable]
position_bundle[writable, signer]
position_bundle_mint[writable]
position_bundle_metadata[writable]
position_bundle_token_account[]
position_bundle_owner[writable, signer]
funder[]
metadata_update_auth[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
system_program (default to11111111111111111111111111111111
)[optional]
rent (default toSysvarRent111111111111111111111111111111111
)[]
associated_token_program[]
metadata_program
Implementations§
Source§impl InitializePositionBundleWithMetadataBuilder
impl InitializePositionBundleWithMetadataBuilder
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
Sourcepub fn position_bundle_metadata(
&mut self,
position_bundle_metadata: Pubkey,
) -> &mut Self
pub fn position_bundle_metadata( &mut self, position_bundle_metadata: Pubkey, ) -> &mut Self
https://github.com/metaplex-foundation/metaplex-program-library/blob/773a574c4b34e5b9f248a81306ec24db064e255f/token-metadata/program/src/utils/metadata.rs#L100
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 funder(&mut self, funder: Pubkey) -> &mut Self
pub fn metadata_update_auth( &mut self, metadata_update_auth: 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 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 rent(&mut self, rent: Pubkey) -> &mut Self
pub fn rent(&mut self, rent: Pubkey) -> &mut Self
[optional account, default to 'SysvarRent111111111111111111111111111111111']
pub fn associated_token_program( &mut self, associated_token_program: Pubkey, ) -> &mut Self
pub fn metadata_program(&mut self, metadata_program: Pubkey) -> &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 InitializePositionBundleWithMetadataBuilder
impl Clone for InitializePositionBundleWithMetadataBuilder
Source§fn clone(&self) -> InitializePositionBundleWithMetadataBuilder
fn clone(&self) -> InitializePositionBundleWithMetadataBuilder
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 Default for InitializePositionBundleWithMetadataBuilder
impl Default for InitializePositionBundleWithMetadataBuilder
Source§fn default() -> InitializePositionBundleWithMetadataBuilder
fn default() -> InitializePositionBundleWithMetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitializePositionBundleWithMetadataBuilder
impl RefUnwindSafe for InitializePositionBundleWithMetadataBuilder
impl Send for InitializePositionBundleWithMetadataBuilder
impl Sync for InitializePositionBundleWithMetadataBuilder
impl Unpin for InitializePositionBundleWithMetadataBuilder
impl UnwindSafe for InitializePositionBundleWithMetadataBuilder
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