Struct pyth_sdk_solana::state::MappingAccount
source · #[repr(C)]pub struct MappingAccount {
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub num: u32,
pub unused: u32,
pub next: Pubkey,
pub products: [Pubkey; 640],
}
Expand description
Mapping accounts form a linked-list containing the listing of all products on Pyth.
Fields§
§magic: u32
pyth magic number
ver: u32
program version
atype: u32
account type
size: u32
account used size
num: u32
number of product accounts
unused: u32
§next: Pubkey
next mapping account (if any)
products: [Pubkey; 640]
Trait Implementations§
source§impl Clone for MappingAccount
impl Clone for MappingAccount
source§fn clone(&self) -> MappingAccount
fn clone(&self) -> MappingAccount
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 MappingAccount
impl Debug for MappingAccount
source§impl PartialEq for MappingAccount
impl PartialEq for MappingAccount
source§fn eq(&self, other: &MappingAccount) -> bool
fn eq(&self, other: &MappingAccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MappingAccount
impl Eq for MappingAccount
impl Pod for MappingAccount
impl StructuralEq for MappingAccount
impl StructuralPartialEq for MappingAccount
Auto Trait Implementations§
impl RefUnwindSafe for MappingAccount
impl Send for MappingAccount
impl Sync for MappingAccount
impl Unpin for MappingAccount
impl UnwindSafe for MappingAccount
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,
§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
.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more