pub struct CreateDecreasePositionRequest2Cpi<'a, 'b> {Show 20 fields
pub __program: &'b AccountInfo<'a>,
pub owner: &'b AccountInfo<'a>,
pub receiving_account: &'b AccountInfo<'a>,
pub perpetuals: &'b AccountInfo<'a>,
pub pool: &'b AccountInfo<'a>,
pub position: &'b AccountInfo<'a>,
pub position_request: &'b AccountInfo<'a>,
pub position_request_ata: &'b AccountInfo<'a>,
pub custody: &'b AccountInfo<'a>,
pub custody_doves_price_account: &'b AccountInfo<'a>,
pub custody_pythnet_price_account: &'b AccountInfo<'a>,
pub collateral_custody: &'b AccountInfo<'a>,
pub desired_mint: &'b AccountInfo<'a>,
pub referral: Option<&'b AccountInfo<'a>>,
pub token_program: &'b AccountInfo<'a>,
pub associated_token_program: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub event_authority: &'b AccountInfo<'a>,
pub program: &'b AccountInfo<'a>,
pub __args: CreateDecreasePositionRequest2InstructionArgs,
}Expand description
create_decrease_position_request2 CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
owner: &'b AccountInfo<'a>§receiving_account: &'b AccountInfo<'a>§perpetuals: &'b AccountInfo<'a>§pool: &'b AccountInfo<'a>§position: &'b AccountInfo<'a>§position_request: &'b AccountInfo<'a>§position_request_ata: &'b AccountInfo<'a>§custody: &'b AccountInfo<'a>§custody_doves_price_account: &'b AccountInfo<'a>§custody_pythnet_price_account: &'b AccountInfo<'a>§collateral_custody: &'b AccountInfo<'a>§desired_mint: &'b AccountInfo<'a>§referral: Option<&'b AccountInfo<'a>>§token_program: &'b AccountInfo<'a>§associated_token_program: &'b AccountInfo<'a>§system_program: &'b AccountInfo<'a>§program: &'b AccountInfo<'a>§__args: CreateDecreasePositionRequest2InstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> CreateDecreasePositionRequest2Cpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: CreateDecreasePositionRequest2CpiAccounts<'a, 'b>, args: CreateDecreasePositionRequest2InstructionArgs, ) -> 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 CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> !Send for CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> !Sync for CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> Freeze for CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> Unpin for CreateDecreasePositionRequest2Cpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for CreateDecreasePositionRequest2Cpi<'a, 'b>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more