#[repr(C)]pub struct Mapping {
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub num: u32,
pub unused: u32,
pub next: AccKey,
pub products: [AccKey; 640],
}
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Expand description
Mapping accounts form a linked-list containing the listing of all products on Pyth.
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.
account used size
num: u32
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
number of product accounts
unused: u32
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
§next: AccKey
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
next mapping account (if any)
products: [AccKey; 640]
👎Deprecated: This crate has been deprecated. Please use pyth-sdk-solana instead.
Trait Implementations§
impl Copy for Mapping
impl Eq for Mapping
impl Pod for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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