#[repr(C)]pub enum PriceStatus {
Unknown = 0,
Trading = 1,
Halted = 2,
Auction = 3,
}
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
The current status of a price feed.
Variantsยง
Unknown = 0
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
The price feed is not currently updating for an unknown reason.
Trading = 1
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
The price feed is updating as expected.
Halted = 2
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
The price feed is not currently updating because trading in the product has been halted.
Auction = 3
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
The price feed is not currently updating because an auction is setting the price.
Trait Implementationsยง
Sourceยงimpl BorshDeserialize for PriceStatus
impl BorshDeserialize for PriceStatus
Sourceยงimpl BorshSerialize for PriceStatus
impl BorshSerialize for PriceStatus
Sourceยงimpl Clone for PriceStatus
impl Clone for PriceStatus
Sourceยงfn clone(&self) -> PriceStatus
fn clone(&self) -> PriceStatus
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for PriceStatus
impl Debug for PriceStatus
Sourceยงimpl Default for PriceStatus
impl Default for PriceStatus
Sourceยงimpl<'de> Deserialize<'de> for PriceStatus
impl<'de> Deserialize<'de> for PriceStatus
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
Sourceยงimpl PartialEq for PriceStatus
impl PartialEq for PriceStatus
Sourceยงimpl Serialize for PriceStatus
impl Serialize for PriceStatus
impl Copy for PriceStatus
impl Eq for PriceStatus
impl StructuralPartialEq for PriceStatus
Auto Trait Implementationsยง
impl Freeze for PriceStatus
impl RefUnwindSafe for PriceStatus
impl Send for PriceStatus
impl Sync for PriceStatus
impl Unpin for PriceStatus
impl UnwindSafe for PriceStatus
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