pub struct UpdateProofAccountBuilder { /* private fields */ }Expand description
Instruction builder for UpdateProofAccount.
§Accounts:
[]mint[]verification_config[optional]instructions_sysvar (default toSysvar1nstructions1111111111111111111111111)[writable, signer]payer[]mint_account[writable]proof_account[]token_account[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl UpdateProofAccountBuilder
impl UpdateProofAccountBuilder
pub fn new() -> Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn verification_config(&mut self, verification_config: Pubkey) -> &mut Self
Sourcepub fn instructions_sysvar(&mut self, instructions_sysvar: Pubkey) -> &mut Self
pub fn instructions_sysvar(&mut self, instructions_sysvar: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn mint_account(&mut self, mint_account: Pubkey) -> &mut Self
pub fn proof_account(&mut self, proof_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: 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 update_proof_args( &mut self, update_proof_args: UpdateProofArgs, ) -> &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 UpdateProofAccountBuilder
impl Clone for UpdateProofAccountBuilder
Source§fn clone(&self) -> UpdateProofAccountBuilder
fn clone(&self) -> UpdateProofAccountBuilder
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 Debug for UpdateProofAccountBuilder
impl Debug for UpdateProofAccountBuilder
Source§impl Default for UpdateProofAccountBuilder
impl Default for UpdateProofAccountBuilder
Source§fn default() -> UpdateProofAccountBuilder
fn default() -> UpdateProofAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateProofAccountBuilder
impl RefUnwindSafe for UpdateProofAccountBuilder
impl Send for UpdateProofAccountBuilder
impl Sync for UpdateProofAccountBuilder
impl Unpin for UpdateProofAccountBuilder
impl UnsafeUnpin for UpdateProofAccountBuilder
impl UnwindSafe for UpdateProofAccountBuilder
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