pub struct GlobalTradeAccounts<'a, 'info> {
pub mint_opt: Option<MintAccountInfo<'a, 'info>>,
pub global: ManifestAccountInfo<'a, 'info, GlobalFixed>,
pub global_vault_opt: Option<TokenAccountInfo<'a, 'info>>,
pub market_vault_opt: Option<TokenAccountInfo<'a, 'info>>,
pub token_program_opt: Option<TokenProgram<'a, 'info>>,
pub system_program: Option<Program<'a, 'info>>,
pub gas_payer_opt: Option<Signer<'a, 'info>>,
pub gas_receiver_opt: Option<Signer<'a, 'info>>,
pub market: Pubkey,
}Expand description
Accounts needed to make a global trade. Scope is beyond just crate so clients can place orders on markets in testing.
Fields§
§mint_opt: Option<MintAccountInfo<'a, 'info>>Required if this is a token22 token.
global: ManifestAccountInfo<'a, 'info, GlobalFixed>§global_vault_opt: Option<TokenAccountInfo<'a, 'info>>§market_vault_opt: Option<TokenAccountInfo<'a, 'info>>§token_program_opt: Option<TokenProgram<'a, 'info>>§system_program: Option<Program<'a, 'info>>§gas_payer_opt: Option<Signer<'a, 'info>>§gas_receiver_opt: Option<Signer<'a, 'info>>§market: PubkeyAuto Trait Implementations§
impl<'a, 'info> Freeze for GlobalTradeAccounts<'a, 'info>
impl<'a, 'info> !RefUnwindSafe for GlobalTradeAccounts<'a, 'info>
impl<'a, 'info> !Send for GlobalTradeAccounts<'a, 'info>
impl<'a, 'info> !Sync for GlobalTradeAccounts<'a, 'info>
impl<'a, 'info> Unpin for GlobalTradeAccounts<'a, 'info>
impl<'a, 'info> !UnwindSafe for GlobalTradeAccounts<'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> 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