Struct tulipv2_sdk_common::pyth::Price
source · [−]#[repr(C)]pub struct Price {Show 23 fields
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub ptype: PriceType,
pub expo: i32,
pub num: u32,
pub unused: u32,
pub curr_slot: u64,
pub valid_slot: u64,
pub twap: i64,
pub avol: u64,
pub drv0: i64,
pub drv1: i64,
pub drv2: i64,
pub drv3: i64,
pub drv4: i64,
pub drv5: i64,
pub prod: AccKey,
pub next: AccKey,
pub agg_pub: AccKey,
pub agg: PriceInfo,
pub comp: [PriceComp; 32],
}Fields
magic: u32ver: u32atype: u32size: u32ptype: PriceTypeexpo: i32num: u32unused: u32curr_slot: u64valid_slot: u64twap: i64avol: u64drv0: i64drv1: i64drv2: i64drv3: i64drv4: i64drv5: i64prod: AccKeynext: AccKeyagg_pub: AccKeyagg: PriceInfocomp: [PriceComp; 32]Trait Implementations
impl Copy for Price
impl Pod for Price
Auto Trait Implementations
impl RefUnwindSafe for Price
impl Send for Price
impl Sync for Price
impl Unpin for Price
impl UnwindSafe for Price
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 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. Read more