pub struct WithdrawNftCore {
pub owner: Pubkey,
pub pool: Pubkey,
pub whitelist: Option<Pubkey>,
pub mint_proof: Option<Pubkey>,
pub asset: Pubkey,
pub collection: Option<Pubkey>,
pub mpl_core_program: Pubkey,
pub nft_receipt: Pubkey,
}Expand description
Accounts.
Fields§
§owner: PubkeyThe owner of the pool and the NFT.
pool: PubkeyThe pool the NFT is being transferred to/from.
whitelist: Option<Pubkey>The whitelist that gatekeeps which NFTs can be deposited into the pool. Must match the whitelist stored in the pool state.
mint_proof: Option<Pubkey>Optional account which must be passed in if the NFT must be verified against a merkle proof condition in the whitelist.
asset: PubkeyThe MPL core asset account.
collection: Option<Pubkey>§mpl_core_program: PubkeyThe MPL Core program.
nft_receipt: PubkeyThe NFT receipt account denoting that an NFT has been deposited into this pool.
Implementations§
Source§impl WithdrawNftCore
impl WithdrawNftCore
pub fn instruction(&self) -> Instruction
pub fn instruction_with_remaining_accounts( &self, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for WithdrawNftCore
impl RefUnwindSafe for WithdrawNftCore
impl Send for WithdrawNftCore
impl Sync for WithdrawNftCore
impl Unpin for WithdrawNftCore
impl UnwindSafe for WithdrawNftCore
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> 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