pub struct InitOpenOrdersCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub open_orders: &'b AccountInfo<'a>,
pub owner: &'b AccountInfo<'a>,
pub market: &'b AccountInfo<'a>,
pub rent: &'b AccountInfo<'a>,
pub market_authority: Option<&'b AccountInfo<'a>>,
}Expand description
init_open_orders CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
open_orders: &'b AccountInfo<'a>OpenOrders
owner: &'b AccountInfo<'a>the OpenOrders owner
market: &'b AccountInfo<'a>market
rent: &'b AccountInfo<'a>TODO: rent?
open orders market authority (optional).
Implementations§
Source§impl<'a, 'b> InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> InitOpenOrdersCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: InitOpenOrdersCpiAccounts<'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> !RefUnwindSafe for InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> !Send for InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> !Sync for InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> Freeze for InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> Unpin for InitOpenOrdersCpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for InitOpenOrdersCpi<'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