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
sourceimpl Clone for MappingAccount
impl Clone for MappingAccount
sourcefn clone(&self) -> MappingAccount
fn clone(&self) -> MappingAccount
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 MappingAccount
impl Debug for MappingAccount
sourceimpl PartialEq<MappingAccount> for MappingAccount
impl PartialEq<MappingAccount> for MappingAccount
sourcefn 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 ==
. Read more
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
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
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
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
. Read more
sourcefn 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
. Read more