pub struct FreezeDelegatedAccountCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
freeze_delegated_account
CPI instruction builder.
Implementations§
source§impl<'a, 'b> FreezeDelegatedAccountCpiBuilder<'a, 'b>
impl<'a, 'b> FreezeDelegatedAccountCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn delegate(&mut self, delegate: &'b AccountInfo<'a>) -> &mut Self
pub fn delegate(&mut self, delegate: &'b AccountInfo<'a>) -> &mut Self
Delegate
sourcepub fn token_account(&mut self, token_account: &'b AccountInfo<'a>) -> &mut Self
pub fn token_account(&mut self, token_account: &'b AccountInfo<'a>) -> &mut Self
Token account to freeze
sourcepub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
pub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
Edition
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Token mint
sourcepub fn token_program(&mut self, token_program: &'b AccountInfo<'a>) -> &mut Self
pub fn token_program(&mut self, token_program: &'b AccountInfo<'a>) -> &mut Self
Token Program
pub fn add_remaining_account( &mut self, account: InstructionAccountInfo<'a, 'b> ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccountInfo<'a, 'b>] ) -> &mut Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for FreezeDelegatedAccountCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for FreezeDelegatedAccountCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for FreezeDelegatedAccountCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for FreezeDelegatedAccountCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for FreezeDelegatedAccountCpiBuilder<'a, 'b>
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