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],
}
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: AccKey
next mapping account (if any)
products: [AccKey; 640]
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
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more