pub struct AddOrderToMarketArgs<'a, 'info> {
pub market: Pubkey,
pub trader_index: DataIndex,
pub num_base_atoms: BaseAtoms,
pub price: QuoteAtomsPerBaseAtom,
pub is_bid: bool,
pub last_valid_slot: u32,
pub order_type: OrderType,
pub global_trade_accounts_opts: &'a [Option<GlobalTradeAccounts<'a, 'info>>; 2],
pub current_slot: Option<u32>,
}Fields§
§market: Pubkey§trader_index: DataIndex§num_base_atoms: BaseAtoms§price: QuoteAtomsPerBaseAtom§is_bid: bool§last_valid_slot: u32§order_type: OrderType§global_trade_accounts_opts: &'a [Option<GlobalTradeAccounts<'a, 'info>>; 2]§current_slot: Option<u32>Trait Implementations§
Source§impl<'a, 'info> Clone for AddOrderToMarketArgs<'a, 'info>
impl<'a, 'info> Clone for AddOrderToMarketArgs<'a, 'info>
Source§fn clone(&self) -> AddOrderToMarketArgs<'a, 'info>
fn clone(&self) -> AddOrderToMarketArgs<'a, 'info>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, 'info> Freeze for AddOrderToMarketArgs<'a, 'info>
impl<'a, 'info> !RefUnwindSafe for AddOrderToMarketArgs<'a, 'info>
impl<'a, 'info> !Send for AddOrderToMarketArgs<'a, 'info>
impl<'a, 'info> !Sync for AddOrderToMarketArgs<'a, 'info>
impl<'a, 'info> Unpin for AddOrderToMarketArgs<'a, 'info>
impl<'a, 'info> !UnwindSafe for AddOrderToMarketArgs<'a, 'info>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DerefOrBorrow<T> for Twhere
T: ?Sized,
impl<T> DerefOrBorrow<T> for Twhere
T: ?Sized,
fn deref_or_borrow(&self) -> &T
Source§impl<T> DerefOrBorrowMut<T> for Twhere
T: ?Sized,
impl<T> DerefOrBorrowMut<T> for Twhere
T: ?Sized,
fn deref_or_borrow_mut(&mut self) -> &mut T
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