pub struct CreateOrderV2 {Show 25 fields
pub owner: Pubkey,
pub receiver: Pubkey,
pub store: Pubkey,
pub market: Pubkey,
pub user: Pubkey,
pub order: Pubkey,
pub position: Option<Pubkey>,
pub initial_collateral_token: Option<Pubkey>,
pub final_output_token: Pubkey,
pub long_token: Option<Pubkey>,
pub short_token: Option<Pubkey>,
pub initial_collateral_token_escrow: Option<Pubkey>,
pub final_output_token_escrow: Option<Pubkey>,
pub long_token_escrow: Option<Pubkey>,
pub short_token_escrow: Option<Pubkey>,
pub initial_collateral_token_source: Option<Pubkey>,
pub system_program: Pubkey,
pub token_program: Pubkey,
pub associated_token_program: Pubkey,
pub callback_authority: Option<Pubkey>,
pub callback_program: Option<Pubkey>,
pub callback_shared_data_account: Option<Pubkey>,
pub callback_partitioned_data_account: Option<Pubkey>,
pub event_authority: Pubkey,
pub program: Pubkey,
}Expand description
Generated client accounts for CreateOrderV2.
Fields§
§owner: Pubkey§receiver: Pubkey§store: Pubkey§market: Pubkey§user: Pubkey§order: Pubkey§position: Option<Pubkey>§initial_collateral_token: Option<Pubkey>§final_output_token: Pubkey§long_token: Option<Pubkey>§short_token: Option<Pubkey>§initial_collateral_token_escrow: Option<Pubkey>§final_output_token_escrow: Option<Pubkey>§long_token_escrow: Option<Pubkey>§short_token_escrow: Option<Pubkey>§initial_collateral_token_source: Option<Pubkey>§system_program: Pubkey§token_program: Pubkey§associated_token_program: Pubkey§callback_program: Option<Pubkey>§callback_partitioned_data_account: Option<Pubkey>§program: PubkeyTrait Implementations§
Source§impl BorshSerialize for CreateOrderV2
impl BorshSerialize for CreateOrderV2
Source§impl ToAccountMetas for CreateOrderV2
impl ToAccountMetas for CreateOrderV2
Source§fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
is_signer is given as an optional override for the signer meta field.
This covers the edge case when a program-derived-address needs to relay
a transaction from a client to another program but sign the transaction
before the relay. The client cannot mark the field as a signer, and so
we have to override the is_signer meta field given by the client.Auto Trait Implementations§
impl Freeze for CreateOrderV2
impl RefUnwindSafe for CreateOrderV2
impl Send for CreateOrderV2
impl Sync for CreateOrderV2
impl Unpin for CreateOrderV2
impl UnwindSafe for CreateOrderV2
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