Struct pyth_client::Mapping
source · [−]#[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],
}
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
This crate has been deprecated. Please use pyth-sdk-solana instead.
pyth magic number
ver: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
program version
atype: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
account type
size: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
account used size
num: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
number of product accounts
unused: u32
This crate has been deprecated. Please use pyth-sdk-solana instead.
next: AccKey
This crate has been deprecated. Please use pyth-sdk-solana instead.
next mapping account (if any)
products: [AccKey; 640]
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 StructuralEq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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
.
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more