pub struct CaptureSpreadDriftCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub capturer: &'b AccountInfo<'a>,
pub main: &'b AccountInfo<'a>,
pub strategy_controller: &'b AccountInfo<'a>,
pub admin_permissions: Option<&'b AccountInfo<'a>>,
pub drift: &'b AccountInfo<'a>,
pub user_account: &'b AccountInfo<'a>,
pub stable_mint: &'b AccountInfo<'a>,
pub token_program: &'b AccountInfo<'a>,
pub __args: CaptureSpreadDriftInstructionArgs,
}Expand description
capture_spread_drift CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
capturer: &'b AccountInfo<'a>§main: &'b AccountInfo<'a>§strategy_controller: &'b AccountInfo<'a>§admin_permissions: Option<&'b AccountInfo<'a>>§drift: &'b AccountInfo<'a>§user_account: &'b AccountInfo<'a>§stable_mint: &'b AccountInfo<'a>§token_program: &'b AccountInfo<'a>§__args: CaptureSpreadDriftInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> CaptureSpreadDriftCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: CaptureSpreadDriftCpiAccounts<'a, 'b>, args: CaptureSpreadDriftInstructionArgs, ) -> 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> !RefUnwindSafe for CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> !Send for CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> !Sync for CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> Freeze for CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> Unpin for CaptureSpreadDriftCpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CaptureSpreadDriftCpi<'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