pub struct CreateDistributionEscrowBuilder { /* private fields */ }Expand description
Instruction builder for CreateDistributionEscrow.
§Accounts:
[]mint[]verification_config_or_mint_authority[]instructions_sysvar_or_creator[]distribution_escrow_authority[writable, signer]payer[writable]distribution_token_account[]distribution_mint[optional]token_program (default toTokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb)[]associated_token_account_program[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl CreateDistributionEscrowBuilder
impl CreateDistributionEscrowBuilder
pub fn new() -> Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn instructions_sysvar_or_creator( &mut self, instructions_sysvar_or_creator: Pubkey, ) -> &mut Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn distribution_token_account( &mut self, distribution_token_account: Pubkey, ) -> &mut Self
pub fn distribution_mint(&mut self, distribution_mint: 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 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb']
pub fn associated_token_account_program( &mut self, associated_token_account_program: Pubkey, ) -> &mut Self
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 create_distribution_escrow_args( &mut self, create_distribution_escrow_args: CreateDistributionEscrowArgs, ) -> &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 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 CreateDistributionEscrowBuilder
impl Clone for CreateDistributionEscrowBuilder
Source§fn clone(&self) -> CreateDistributionEscrowBuilder
fn clone(&self) -> CreateDistributionEscrowBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CreateDistributionEscrowBuilder
impl Default for CreateDistributionEscrowBuilder
Source§fn default() -> CreateDistributionEscrowBuilder
fn default() -> CreateDistributionEscrowBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateDistributionEscrowBuilder
impl RefUnwindSafe for CreateDistributionEscrowBuilder
impl Send for CreateDistributionEscrowBuilder
impl Sync for CreateDistributionEscrowBuilder
impl Unpin for CreateDistributionEscrowBuilder
impl UnsafeUnpin for CreateDistributionEscrowBuilder
impl UnwindSafe for CreateDistributionEscrowBuilder
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