pub struct WithdrawNftCoreBuilder { /* private fields */ }Expand description
Instruction builder for WithdrawNftCore.
§Accounts:
[writable, signer]owner[writable]pool[optional]whitelist[optional]mint_proof[writable]asset[optional]collection[optional]mpl_core_program (default toCoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d)[writable]nft_receipt
Implementations§
Source§impl WithdrawNftCoreBuilder
impl WithdrawNftCoreBuilder
pub fn new() -> Self
Sourcepub fn pool(&mut self, pool: Pubkey) -> &mut Self
pub fn pool(&mut self, pool: Pubkey) -> &mut Self
The pool the NFT is being transferred to/from.
Sourcepub fn whitelist(&mut self, whitelist: Option<Pubkey>) -> &mut Self
pub fn whitelist(&mut self, whitelist: Option<Pubkey>) -> &mut Self
[optional account]
The whitelist that gatekeeps which NFTs can be deposited into the pool.
Must match the whitelist stored in the pool state.
Sourcepub fn mint_proof(&mut self, mint_proof: Option<Pubkey>) -> &mut Self
pub fn mint_proof(&mut self, mint_proof: Option<Pubkey>) -> &mut Self
[optional account]
Optional account which must be passed in if the NFT must be verified against a
merkle proof condition in the whitelist.
Sourcepub fn collection(&mut self, collection: Option<Pubkey>) -> &mut Self
pub fn collection(&mut self, collection: Option<Pubkey>) -> &mut Self
[optional account]
Sourcepub fn mpl_core_program(&mut self, mpl_core_program: Pubkey) -> &mut Self
pub fn mpl_core_program(&mut self, mpl_core_program: Pubkey) -> &mut Self
[optional account, default to 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d']
The MPL Core program.
Sourcepub fn nft_receipt(&mut self, nft_receipt: Pubkey) -> &mut Self
pub fn nft_receipt(&mut self, nft_receipt: Pubkey) -> &mut Self
The NFT receipt account denoting that an NFT has been deposited into this pool.
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 WithdrawNftCoreBuilder
impl Clone for WithdrawNftCoreBuilder
Source§fn clone(&self) -> WithdrawNftCoreBuilder
fn clone(&self) -> WithdrawNftCoreBuilder
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 WithdrawNftCoreBuilder
impl Debug for WithdrawNftCoreBuilder
Source§impl Default for WithdrawNftCoreBuilder
impl Default for WithdrawNftCoreBuilder
Source§fn default() -> WithdrawNftCoreBuilder
fn default() -> WithdrawNftCoreBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WithdrawNftCoreBuilder
impl RefUnwindSafe for WithdrawNftCoreBuilder
impl Send for WithdrawNftCoreBuilder
impl Sync for WithdrawNftCoreBuilder
impl Unpin for WithdrawNftCoreBuilder
impl UnwindSafe for WithdrawNftCoreBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more