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,
},
}
Expand description
Instructions supported by the pyth-client program, used for testing and instruction counts
Variants
Divide
Multiply
Add
ScaleToExponent
Normalize
Fields
x: PriceConf
Noop
Don’t do anything for comparison
No accounts required for this instruction
PriceStatusCheck
Trait Implementations
sourceimpl BorshDeserialize for PythClientInstruction where
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
i32: BorshDeserialize,
PriceConf: BorshDeserialize,
Vec<u8>: BorshDeserialize,
PriceStatus: BorshDeserialize,
impl BorshDeserialize for PythClientInstruction where
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
i32: BorshDeserialize,
PriceConf: BorshDeserialize,
Vec<u8>: BorshDeserialize,
PriceStatus: BorshDeserialize,
sourceimpl BorshSerialize for PythClientInstruction where
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
i32: BorshSerialize,
PriceConf: BorshSerialize,
Vec<u8>: BorshSerialize,
PriceStatus: BorshSerialize,
impl BorshSerialize for PythClientInstruction where
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
PriceConf: BorshSerialize,
i32: BorshSerialize,
PriceConf: BorshSerialize,
Vec<u8>: BorshSerialize,
PriceStatus: BorshSerialize,
sourceimpl Clone for PythClientInstruction
impl Clone for PythClientInstruction
sourcefn clone(&self) -> PythClientInstruction
fn clone(&self) -> PythClientInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PythClientInstruction
impl Debug for PythClientInstruction
sourceimpl PartialEq<PythClientInstruction> for PythClientInstruction
impl PartialEq<PythClientInstruction> for PythClientInstruction
sourcefn eq(&self, other: &PythClientInstruction) -> bool
fn eq(&self, other: &PythClientInstruction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PythClientInstruction) -> bool
fn ne(&self, other: &PythClientInstruction) -> bool
This method tests for !=
.
impl StructuralPartialEq for PythClientInstruction
Auto Trait Implementations
impl RefUnwindSafe for PythClientInstruction
impl Send for PythClientInstruction
impl Sync for PythClientInstruction
impl Unpin for PythClientInstruction
impl UnwindSafe for PythClientInstruction
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more