pub enum PythClientInstruction {
Divide {
numerator: PriceConf,
denominator: PriceConf,
},
Multiply {
x: PriceConf,
y: PriceConf,
},
Add {
x: PriceConf,
y: PriceConf,
},
ScaleToExponent {
x: PriceConf,
expo: i32,
},
Normalize {
x: PriceConf,
},
Noop,
PriceStatusCheck {
price_account_data: Vec<u8>,
expected_price_status: PriceStatus,
},
}
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
Instructions supported by the pyth-client program, used for testing and instruction counts
Variants§
Divide
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Multiply
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Add
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
ScaleToExponent
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Normalize
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Noop
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Don’t do anything for comparison
No accounts required for this instruction
PriceStatusCheck
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
§
price_account_data: Vec<u8>
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
§
expected_price_status: PriceStatus
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Trait Implementations§
Source§impl BorshDeserialize for PythClientInstructionwhere
PriceConf: BorshDeserialize,
i32: BorshDeserialize,
Vec<u8>: BorshDeserialize,
PriceStatus: BorshDeserialize,
impl BorshDeserialize for PythClientInstructionwhere
PriceConf: BorshDeserialize,
i32: BorshDeserialize,
Vec<u8>: BorshDeserialize,
PriceStatus: BorshDeserialize,
Source§impl BorshSerialize for PythClientInstructionwhere
PriceConf: BorshSerialize,
i32: BorshSerialize,
Vec<u8>: BorshSerialize,
PriceStatus: BorshSerialize,
impl BorshSerialize for PythClientInstructionwhere
PriceConf: BorshSerialize,
i32: BorshSerialize,
Vec<u8>: BorshSerialize,
PriceStatus: BorshSerialize,
Source§impl Clone for PythClientInstruction
impl Clone for PythClientInstruction
Source§fn clone(&self) -> PythClientInstruction
fn clone(&self) -> PythClientInstruction
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 moreSource§impl Debug for PythClientInstruction
impl Debug for PythClientInstruction
Source§impl PartialEq for PythClientInstruction
impl PartialEq for PythClientInstruction
impl StructuralPartialEq for PythClientInstruction
Auto Trait Implementations§
impl Freeze for PythClientInstruction
impl RefUnwindSafe for PythClientInstruction
impl Send for PythClientInstruction
impl Sync for PythClientInstruction
impl Unpin for PythClientInstruction
impl UnwindSafe for PythClientInstruction
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> 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