Struct pyth_sdk_solana::state::PriceComp
source · #[repr(C)]pub struct PriceComp {
pub publisher: Pubkey,
pub agg: PriceInfo,
pub latest: PriceInfo,
}
Expand description
The price and confidence contributed by a specific publisher.
Fields§
§publisher: Pubkey
key of contributing publisher
agg: PriceInfo
the price used to compute the current aggregate price
latest: PriceInfo
The publisher’s latest price. This price will be incorporated into the aggregate price when price aggregation runs next.
Trait Implementations§
source§impl BorshDeserialize for PriceCompwhere
Pubkey: BorshDeserialize,
PriceInfo: BorshDeserialize,
impl BorshDeserialize for PriceCompwhere
Pubkey: BorshDeserialize,
PriceInfo: BorshDeserialize,
source§impl BorshSerialize for PriceCompwhere
Pubkey: BorshSerialize,
PriceInfo: BorshSerialize,
impl BorshSerialize for PriceCompwhere
Pubkey: BorshSerialize,
PriceInfo: BorshSerialize,
source§impl<'de> Deserialize<'de> for PriceComp
impl<'de> Deserialize<'de> for PriceComp
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