#[repr(C)]pub struct InstructionOptionTrade {
pub cmd: u8,
pub version: u8,
pub reserved: u8,
pub basket_length: u8,
pub trade_qty: [i32; 95],
pub max_cost: i64,
pub basket: [BasketData; 4],
}Fields§
§cmd: u8§version: u8§reserved: u8§basket_length: u8§trade_qty: [i32; 95]§max_cost: i64§basket: [BasketData; 4]Trait Implementations§
source§impl AsTransactionInstruction for InstructionOptionTrade
impl AsTransactionInstruction for InstructionOptionTrade
type DvlTransactionInstructionParams = OptionTradeTransactionParams
fn as_transaction_instruction<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 DvlClient,
signer: &'life2 Pubkey,
transaction_params: Self::DvlTransactionInstructionParams
) -> Pin<Box<dyn Future<Output = Result<Box<Instruction>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
source§impl<'a> DvlDeserializableInstruction<'a> for InstructionOptionTrade
impl<'a> DvlDeserializableInstruction<'a> for InstructionOptionTrade
source§impl<'a> DvlInstructionData<'a> for InstructionOptionTrade
impl<'a> DvlInstructionData<'a> for InstructionOptionTrade
type DvlInstrParams = OptionTradeParams<'a>
fn new( params: Self::DvlInstrParams ) -> Result<Box<InstructionOptionTrade>, Box<dyn Error>>
fn to_vec_le(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for InstructionOptionTrade
impl RefUnwindSafe for InstructionOptionTrade
impl Send for InstructionOptionTrade
impl Sync for InstructionOptionTrade
impl Unpin for InstructionOptionTrade
impl UnwindSafe for InstructionOptionTrade
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