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,
},
}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
This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Multiply
This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Add
This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
ScaleToExponent
This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Normalize
This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
Noop
This crate has been deprecated. Please use pyth-sdk-solana instead.
Don’t do anything for comparison
No accounts required for this instruction
PriceStatusCheck
This crate has been deprecated. Please use pyth-sdk-solana instead.
Fields
price_account_data: Vec<u8>This crate has been deprecated. Please use pyth-sdk-solana instead.
expected_price_status: PriceStatusThis 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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PythClientInstruction
impl Debug for PythClientInstruction
Source§impl PartialEq for PythClientInstruction
impl PartialEq for PythClientInstruction
Source§fn eq(&self, other: &PythClientInstruction) -> bool
fn eq(&self, other: &PythClientInstruction) -> bool
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
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>
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>
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