pub struct RequestRedemptionBuilder { /* private fields */ }Expand description
Instruction builder for RequestRedemption.
§Accounts:
[writable, signer]user_wallet[]bond_account[]mint_account[writable]issuance_account[writable]user_token_account[writable]user_nft_token_account[writable, signer]nft_mint_account[writable]nft_metadata_account[writable]nft_master_edition_account[writable]nft_issuance_vault_account[writable]nft_issuance_vault_token_account[]nft_collection_mint[writable]nft_collection_metadata_account[]nft_collection_master_edition_account[]config_account[]token2022_program[]associated_token_program[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[]metadata_program[optional]sysvar_instructions (default toSysvar1nstructions1111111111111111111111111)
Implementations§
Source§impl RequestRedemptionBuilder
impl RequestRedemptionBuilder
pub fn new() -> Self
pub fn user_wallet(&mut self, user_wallet: Pubkey) -> &mut Self
pub fn bond_account(&mut self, bond_account: Pubkey) -> &mut Self
pub fn mint_account(&mut self, mint_account: Pubkey) -> &mut Self
pub fn issuance_account(&mut self, issuance_account: Pubkey) -> &mut Self
pub fn user_token_account(&mut self, user_token_account: Pubkey) -> &mut Self
pub fn user_nft_token_account( &mut self, user_nft_token_account: Pubkey, ) -> &mut Self
pub fn nft_mint_account(&mut self, nft_mint_account: Pubkey) -> &mut Self
pub fn nft_metadata_account( &mut self, nft_metadata_account: Pubkey, ) -> &mut Self
pub fn nft_master_edition_account( &mut self, nft_master_edition_account: Pubkey, ) -> &mut Self
pub fn nft_issuance_vault_account( &mut self, nft_issuance_vault_account: Pubkey, ) -> &mut Self
pub fn nft_issuance_vault_token_account( &mut self, nft_issuance_vault_token_account: Pubkey, ) -> &mut Self
pub fn nft_collection_mint(&mut self, nft_collection_mint: Pubkey) -> &mut Self
pub fn nft_collection_metadata_account( &mut self, nft_collection_metadata_account: Pubkey, ) -> &mut Self
pub fn nft_collection_master_edition_account( &mut self, nft_collection_master_edition_account: Pubkey, ) -> &mut Self
pub fn config_account(&mut self, config_account: Pubkey) -> &mut Self
pub fn token2022_program(&mut self, token2022_program: Pubkey) -> &mut Self
pub fn associated_token_program( &mut self, associated_token_program: 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']
pub fn metadata_program(&mut self, metadata_program: Pubkey) -> &mut Self
Sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
pub fn amount(&mut self, amount: u64) -> &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 aditional 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 Default for RequestRedemptionBuilder
impl Default for RequestRedemptionBuilder
Source§fn default() -> RequestRedemptionBuilder
fn default() -> RequestRedemptionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestRedemptionBuilder
impl RefUnwindSafe for RequestRedemptionBuilder
impl Send for RequestRedemptionBuilder
impl Sync for RequestRedemptionBuilder
impl Unpin for RequestRedemptionBuilder
impl UnwindSafe for RequestRedemptionBuilder
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