pub struct InitializePositionBundleWithMetadataCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
Instruction builder for InitializePositionBundleWithMetadata
via CPI.
§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[]
token_program[]
system_program[]
rent[]
associated_token_program[]
metadata_program
Implementations§
Source§impl<'a, 'b> InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
pub fn position_bundle( &mut self, position_bundle: &'b AccountInfo<'a>, ) -> &mut Self
pub fn position_bundle_mint( &mut self, position_bundle_mint: &'b AccountInfo<'a>, ) -> &mut Self
Sourcepub fn position_bundle_metadata(
&mut self,
position_bundle_metadata: &'b AccountInfo<'a>,
) -> &mut Self
pub fn position_bundle_metadata( &mut self, position_bundle_metadata: &'b AccountInfo<'a>, ) -> &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: &'b AccountInfo<'a>, ) -> &mut Self
pub fn position_bundle_owner( &mut self, position_bundle_owner: &'b AccountInfo<'a>, ) -> &mut Self
pub fn funder(&mut self, funder: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata_update_auth( &mut self, metadata_update_auth: &'b AccountInfo<'a>, ) -> &mut Self
pub fn token_program(&mut self, token_program: &'b AccountInfo<'a>) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a>, ) -> &mut Self
pub fn rent(&mut self, rent: &'b AccountInfo<'a>) -> &mut Self
pub fn associated_token_program( &mut self, associated_token_program: &'b AccountInfo<'a>, ) -> &mut Self
pub fn metadata_program( &mut self, metadata_program: &'b AccountInfo<'a>, ) -> &mut Self
Sourcepub fn add_remaining_account(
&mut self,
account: &'b AccountInfo<'a>,
is_writable: bool,
is_signer: bool,
) -> &mut Self
pub fn add_remaining_account( &mut self, account: &'b AccountInfo<'a>, is_writable: bool, is_signer: bool, ) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(
&mut self,
accounts: &[(&'b AccountInfo<'a>, bool, bool)],
) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> &mut Self
Add additional accounts to the instruction.
Each account is represented by a tuple of the AccountInfo
, a bool
indicating whether the account is writable or not,
and a bool
indicating whether the account is a signer or not.
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Trait Implementations§
Source§impl<'a, 'b> Clone for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> Clone for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
Source§fn clone(&self) -> InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
fn clone(&self) -> InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
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 moreAuto Trait Implementations§
impl<'a, 'b> Freeze for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for InitializePositionBundleWithMetadataCpiBuilder<'a, 'b>
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