Skip to main content

JournalEntry

Struct JournalEntry 

#[repr(C)]
pub struct JournalEntry { pub sequence: u64, pub timestamp_ns: u64, pub order_id: u64, pub aux_id: u64, pub price: i64, pub quantity: u64, pub conn_id: u64, pub event_type: u8, pub status: u8, pub padding: [u8; 6], }

Fields§

§sequence: u64§timestamp_ns: u64§order_id: u64§aux_id: u64§price: i64§quantity: u64§conn_id: u64§event_type: u8§status: u8§padding: [u8; 6]

Implementations§

§

impl JournalEntry

pub const fn trade( sequence: u64, timestamp_ns: u64, taker_order_id: u64, maker_order_id: u64, fill_price: i64, fill_quantity: u64, conn_id: u64, ) -> Self

pub const fn order_status( sequence: u64, timestamp_ns: u64, order_id: u64, status: u8, remaining_quantity: u64, conn_id: u64, ) -> Self

pub fn set_status_order_meta( &mut self, price: i64, side: u8, order_type: u8, time_in_force: u8, )

pub const fn status_order_meta(&self) -> Option<StatusOrderMeta>

Trait Implementations§

§

impl Clone for JournalEntry

§

fn clone(&self) -> JournalEntry

1.0.0 (const: )§

fn clone_from(&mut self, source: &Self)

§

impl Debug for JournalEntry

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

§

impl PartialEq for JournalEntry

§

fn eq(&self, other: &JournalEntry) -> bool

1.0.0 (const: )§

fn ne(&self, other: &Rhs) -> bool

§

impl Zeroable for JournalEntry

§

fn zeroed() -> Self

§

impl Copy for JournalEntry

§

impl Eq for JournalEntry

§

impl Pod for JournalEntry

§

impl StructuralPartialEq for JournalEntry

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

§

type Bits = T

§

fn is_valid_bit_pattern(_bits: &T) -> bool

§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> From<T> for T

§

fn from(t: T) -> T

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

§

fn to_owned(&self) -> T

§

fn clone_into(&self, target: &mut T)

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

§

impl<T> AnyBitPattern for T
where T: Pod,

§

impl<T> NoUninit for T
where T: Pod,