pub struct ClosePositionCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub position_authority: &'b AccountInfo<'a>,
pub receiver: &'b AccountInfo<'a>,
pub position: &'b AccountInfo<'a>,
pub position_mint: &'b AccountInfo<'a>,
pub position_token_account: &'b AccountInfo<'a>,
pub token2022_program: &'b AccountInfo<'a>,
}
Expand description
close_position
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
receiver: &'b AccountInfo<'a>
§position: &'b AccountInfo<'a>
§position_mint: &'b AccountInfo<'a>
§position_token_account: &'b AccountInfo<'a>
§token2022_program: &'b AccountInfo<'a>
Implementations§
Source§impl<'a, 'b> ClosePositionCpi<'a, 'b>
impl<'a, 'b> ClosePositionCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: ClosePositionCpiAccounts<'a, 'b>, ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> Freeze for ClosePositionCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for ClosePositionCpi<'a, 'b>
impl<'a, 'b> !Send for ClosePositionCpi<'a, 'b>
impl<'a, 'b> !Sync for ClosePositionCpi<'a, 'b>
impl<'a, 'b> Unpin for ClosePositionCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for ClosePositionCpi<'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