#[repr(C)]pub struct PriceInfo {
pub price: i64,
pub conf: u64,
pub status: PriceStatus,
pub corp_act: CorpAction,
pub pub_slot: u64,
}
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
A price and confidence at a specific slot. This struct can represent either a publisher’s contribution or the outcome of price aggregation.
Fields§
§price: i64
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
the current price. For the aggregate price use price.get_current_price() whenever possible. It has more checks to make sure price is valid.
conf: u64
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
confidence interval around the price. For the aggregate confidence use price.get_current_price() whenever possible. It has more checks to make sure price is valid.
status: PriceStatus
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
status of price (Trading is valid). For the aggregate status use price.get_current_status() whenever possible. Price data can sometimes go stale and the function handles the status in such cases.
corp_act: CorpAction
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
notification of any corporate action
pub_slot: u64
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Trait Implementations§
Source§impl BorshDeserialize for PriceInfo
impl BorshDeserialize for PriceInfo
Source§impl BorshSerialize for PriceInfowhere
i64: BorshSerialize,
u64: BorshSerialize,
PriceStatus: BorshSerialize,
CorpAction: BorshSerialize,
impl BorshSerialize for PriceInfowhere
i64: BorshSerialize,
u64: BorshSerialize,
PriceStatus: BorshSerialize,
CorpAction: BorshSerialize,
Source§impl<'de> Deserialize<'de> for PriceInfo
impl<'de> Deserialize<'de> for PriceInfo
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 PriceInfo
impl Eq for PriceInfo
impl StructuralPartialEq for PriceInfo
Auto Trait Implementations§
impl Freeze for PriceInfo
impl RefUnwindSafe for PriceInfo
impl Send for PriceInfo
impl Sync for PriceInfo
impl Unpin for PriceInfo
impl UnwindSafe for PriceInfo
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