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: u32ver: u32atype: u32size: u32ptype: PriceTypeexpo: i32num: u32num_qt: u32last_slot: u64valid_slot: u64twap: Ematwac: Emadrv1: i64drv2: i64prod: AccKeynext: AccKeyprev_slot: u64prev_price: i64prev_conf: u64drv3: i64agg: PriceInfocomp: [PriceComp; 32]

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.