pub struct ThawDelegatedAccountBuilder { /* private fields */ }
Expand description
Instruction builder for ThawDelegatedAccount
.
Accounts:
[writable, signer]
delegate[writable]
token_account[]
edition[]
mint[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)
Implementations§
source§impl ThawDelegatedAccountBuilder
impl ThawDelegatedAccountBuilder
pub fn new() -> Self
sourcepub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
Token account to thaw
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']
Token Program
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 ThawDelegatedAccountBuilder
impl Default for ThawDelegatedAccountBuilder
source§fn default() -> ThawDelegatedAccountBuilder
fn default() -> ThawDelegatedAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ThawDelegatedAccountBuilder
impl Send for ThawDelegatedAccountBuilder
impl Sync for ThawDelegatedAccountBuilder
impl Unpin for ThawDelegatedAccountBuilder
impl UnwindSafe for ThawDelegatedAccountBuilder
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