[−][src]Enum solana_exchange_api::exchange_instruction::ExchangeInstruction
Variants
New token account key 0 - Signer key 1 - New token account
Transfer tokens between two accounts key 0 - Account to transfer tokens to key 1 - Account to transfer tokens from. This can be the exchange program itself, the exchange has a limitless number of tokens it can transfer.
OrderRequest(OrderRequestInfo)
Order request key 0 - Signer key 1 - Account in which to record the trade order key 2 - Token account to source tokens from
Order cancellation key 0 - Signer key 1 - Order to cancel
Trade swap request
key 0 - Signer
key 2 - 'To' trade order
key 3 - From
trade order
key 6 - Token account in which to deposit the brokers profit from the swap.
Trait Implementations
impl Clone for ExchangeInstruction
[src]
fn clone(&self) -> ExchangeInstruction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ExchangeInstruction
[src]
impl PartialEq<ExchangeInstruction> for ExchangeInstruction
[src]
fn eq(&self, other: &ExchangeInstruction) -> bool
[src]
fn ne(&self, other: &ExchangeInstruction) -> bool
[src]
impl Debug for ExchangeInstruction
[src]
impl StructuralPartialEq for ExchangeInstruction
[src]
impl StructuralEq for ExchangeInstruction
[src]
impl Serialize for ExchangeInstruction
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ExchangeInstruction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ExchangeInstruction
impl Sync for ExchangeInstruction
impl Unpin for ExchangeInstruction
impl UnwindSafe for ExchangeInstruction
impl RefUnwindSafe for ExchangeInstruction
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,