#[repr(C)]pub struct Product {
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub px_acc: AccKey,
pub attr: [u8; 464],
}
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
Product accounts contain metadata for a single product, such as its symbol (“Crypto.BTC/USD”) and its base/quote currencies.
Fields§
§magic: u32
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
pyth magic number
ver: u32
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
program version
atype: u32
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
account type
size: u32
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
price account size
px_acc: AccKey
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
first price account in list
attr: [u8; 464]
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
key/value pairs of reference attr.
Implementations§
Trait Implementations§
impl Copy for Product
impl Eq for Product
impl Pod for Product
impl StructuralPartialEq for Product
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnwindSafe for Product
Blanket Implementations§
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.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