Struct pyth::pc::Price [−][src]
#[repr(C)]pub struct Price {Show 22 fields
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub ptype: PriceType,
pub expo: i32,
pub num: u32,
pub num_qt: u32,
pub last_slot: u64,
pub valid_slot: u64,
pub twap: Ema,
pub twac: Ema,
pub drv1: i64,
pub drv2: i64,
pub prod: AccKey,
pub next: AccKey,
pub prev_slot: u64,
pub prev_price: i64,
pub prev_conf: u64,
pub drv3: i64,
pub agg: PriceInfo,
pub comp: [PriceComp; 32],
}
Fields
magic: u32
ver: u32
atype: u32
size: u32
ptype: PriceType
expo: i32
num: u32
num_qt: u32
last_slot: u64
valid_slot: u64
twap: Ema
twac: Ema
drv1: i64
drv2: i64
prod: AccKey
next: AccKey
prev_slot: u64
prev_price: i64
prev_conf: u64
drv3: i64
agg: PriceInfo
comp: [PriceComp; 32]
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Price
impl UnwindSafe for Price
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more