#[repr(C)]pub enum AccountType {
Unknown = 0,
Mapping = 1,
Product = 2,
Price = 3,
}
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
The type of Pyth account determines what data it contains
Variantsยง
Unknown = 0
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Mapping = 1
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Product = 2
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Price = 3
๐Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Trait Implementationsยง
Sourceยงimpl BorshDeserialize for AccountType
impl BorshDeserialize for AccountType
Sourceยงimpl BorshSerialize for AccountType
impl BorshSerialize for AccountType
Sourceยงimpl Clone for AccountType
impl Clone for AccountType
Sourceยงfn clone(&self) -> AccountType
fn clone(&self) -> AccountType
Returns a copy 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 AccountType
impl Debug for AccountType
Sourceยงimpl Default for AccountType
impl Default for AccountType
Sourceยงimpl<'de> Deserialize<'de> for AccountType
impl<'de> Deserialize<'de> for AccountType
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 AccountType
impl PartialEq for AccountType
Sourceยงimpl Serialize for AccountType
impl Serialize for AccountType
impl Copy for AccountType
impl Eq for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementationsยง
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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