Enum pyth_client::instruction::PythClientInstruction [−][src]
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,
}
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
Trait Implementations
impl BorshDeserialize for PythClientInstruction where
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
i32: BorshDeserialize,
PriceConf: BorshDeserialize,
impl BorshDeserialize for PythClientInstruction where
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
PriceConf: BorshDeserialize,
i32: BorshDeserialize,
PriceConf: BorshDeserialize,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
pub default fn example() -> T
Mutably borrows from an owned value. Read more