pub struct CreatePurchaseOrderBuilder { /* private fields */ }Expand description
Instruction builder for CreatePurchaseOrder.
§Accounts:
[writable, signer]user_wallet[]bond_account[]issuance_account[writable]payment_account[writable]payment_token_account[writable]user_payment_token_account[writable]user_nft_token_account[writable, signer]nft_mint_account[writable]nft_metadata_account[writable]nft_master_edition_account[writable]purchase_order_vault_account[]nft_collection_mint[writable]nft_collection_metadata_account[]nft_collection_master_edition_account[]payment_mint_account[]payment_feed_account[]payment_base_price_feed_account[]config_account[]associated_token_program[]token2022_program[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[]metadata_program[optional]sysvar_instructions (default toSysvar1nstructions1111111111111111111111111)[optional]payment_quote_price_feed_account
Implementations§
Source§impl CreatePurchaseOrderBuilder
impl CreatePurchaseOrderBuilder
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 issuance_account(&mut self, issuance_account: Pubkey) -> &mut Self
pub fn payment_account(&mut self, payment_account: Pubkey) -> &mut Self
pub fn payment_token_account( &mut self, payment_token_account: Pubkey, ) -> &mut Self
pub fn user_payment_token_account( &mut self, user_payment_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 purchase_order_vault_account( &mut self, purchase_order_vault_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 payment_mint_account( &mut self, payment_mint_account: Pubkey, ) -> &mut Self
pub fn payment_feed_account( &mut self, payment_feed_account: Pubkey, ) -> &mut Self
pub fn payment_base_price_feed_account( &mut self, payment_base_price_feed_account: Pubkey, ) -> &mut Self
pub fn config_account(&mut self, config_account: Pubkey) -> &mut Self
pub fn associated_token_program( &mut self, associated_token_program: Pubkey, ) -> &mut Self
pub fn token2022_program(&mut self, token2022_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']
Sourcepub fn payment_quote_price_feed_account(
&mut self,
payment_quote_price_feed_account: Option<Pubkey>,
) -> &mut Self
pub fn payment_quote_price_feed_account( &mut self, payment_quote_price_feed_account: Option<Pubkey>, ) -> &mut Self
[optional account]
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 CreatePurchaseOrderBuilder
impl Default for CreatePurchaseOrderBuilder
Source§fn default() -> CreatePurchaseOrderBuilder
fn default() -> CreatePurchaseOrderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreatePurchaseOrderBuilder
impl RefUnwindSafe for CreatePurchaseOrderBuilder
impl Send for CreatePurchaseOrderBuilder
impl Sync for CreatePurchaseOrderBuilder
impl Unpin for CreatePurchaseOrderBuilder
impl UnwindSafe for CreatePurchaseOrderBuilder
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