#[repr(C)]pub struct PriceComp {
pub publisher: AccKey,
pub agg: PriceInfo,
pub latest: PriceInfo,
}
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
The price and confidence contributed by a specific publisher.
Fieldsยง
ยงpublisher: AccKey
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
key of contributing publisher
agg: PriceInfo
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
the price used to compute the current aggregate price
latest: PriceInfo
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
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 PriceComp
impl BorshDeserialize for PriceComp
Sourceยงimpl BorshSerialize for PriceComp
impl BorshSerialize for PriceComp
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
impl Copy for PriceComp
impl Eq for PriceComp
impl StructuralPartialEq for PriceComp
Auto Trait Implementationsยง
impl Freeze for PriceComp
impl RefUnwindSafe for PriceComp
impl Send for PriceComp
impl Sync for PriceComp
impl Unpin for PriceComp
impl UnwindSafe for PriceComp
Blanket Implementationsยง
Sourceยงimpl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Sourceยงimpl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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