Enum pyth_client::AccountType
source · [−]#[repr(C)]
pub enum AccountType {
Unknown,
Mapping,
Product,
Price,
}
👎 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
👎 Deprecated:
This crate has been deprecated. Please use pyth-sdk-solana instead.
Mapping
👎 Deprecated:
This crate has been deprecated. Please use pyth-sdk-solana instead.
Product
👎 Deprecated:
This crate has been deprecated. Please use pyth-sdk-solana instead.
Price
👎 Deprecated:
This crate has been deprecated. Please use pyth-sdk-solana instead.
Trait Implementations
sourceimpl BorshDeserialize for AccountType
impl BorshDeserialize for AccountType
sourceimpl BorshSerialize for AccountType
impl BorshSerialize for AccountType
sourceimpl Clone for AccountType
impl Clone for AccountType
sourcefn clone(&self) -> AccountType
fn clone(&self) -> AccountType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccountType
impl Debug for AccountType
sourceimpl Default for AccountType
impl Default for AccountType
sourceimpl<'de> Deserialize<'de> for AccountType
impl<'de> Deserialize<'de> for AccountType
sourcefn 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
sourceimpl PartialEq<AccountType> for AccountType
impl PartialEq<AccountType> for AccountType
sourceimpl Serialize for AccountType
impl Serialize for AccountType
impl Copy for AccountType
impl Eq for AccountType
impl StructuralEq for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementations
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more