pub struct FreezeDelegatedAccountBuilder { /* private fields */ }
Expand description
Instruction builder for FreezeDelegatedAccount
.
Accounts:
[writable, signer]
delegate[writable]
token_account[]
edition[]
mint[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)
Implementations§
source§impl FreezeDelegatedAccountBuilder
impl FreezeDelegatedAccountBuilder
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 freeze
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 FreezeDelegatedAccountBuilder
impl Default for FreezeDelegatedAccountBuilder
source§fn default() -> FreezeDelegatedAccountBuilder
fn default() -> FreezeDelegatedAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FreezeDelegatedAccountBuilder
impl Send for FreezeDelegatedAccountBuilder
impl Sync for FreezeDelegatedAccountBuilder
impl Unpin for FreezeDelegatedAccountBuilder
impl UnwindSafe for FreezeDelegatedAccountBuilder
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