Struct pyth_sdk_solana::state::Rational
source · Expand description
An number represented as both value
and also in rational as numer/denom
.
Fields§
§val: i64
§numer: i64
§denom: i64
Trait Implementations§
source§impl BorshDeserialize for Rationalwhere
i64: BorshDeserialize,
impl BorshDeserialize for Rationalwhere
i64: BorshDeserialize,
source§impl BorshSerialize for Rationalwhere
i64: BorshSerialize,
impl BorshSerialize for Rationalwhere
i64: BorshSerialize,
source§impl<'de> Deserialize<'de> for Rational
impl<'de> Deserialize<'de> for Rational
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more